Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 762
» Latest member: johnsonfe
» Forum threads: 298
» Forum posts: 1,683

Full Statistics

Online Users
There are currently 189 online users.
» 0 Member(s) | 189 Guest(s)

Latest Threads
SIP Stopped Working After...
Forum: Report a problem
Last Post: dan
2024 Dec 16, 04:19 PM
» Replies: 6
» Views: 221
Master keeps resetting to...
Forum: Report a problem
Last Post: DavidCNZ
2024 Dec 04, 08:57 PM
» Replies: 12
» Views: 251
installation fails
Forum: Installation and set up questions
Last Post: dan
2024 Nov 20, 06:52 PM
» Replies: 4
» Views: 92
Allow plugins ability to ...
Forum: Feature requests
Last Post: jonathan
2024 Aug 11, 10:56 PM
» Replies: 11
» Views: 489
Tank Fill Function
Forum: Feature requests
Last Post: dan
2024 Jul 12, 03:07 PM
» Replies: 3
» Views: 267
Curl Method Menu
Forum: Installation and set up questions
Last Post: astrogerard
2024 Jun 22, 03:15 PM
» Replies: 4
» Views: 334
Module i2c relay.
Forum: Feature requests
Last Post: litronas
2024 Jun 22, 12:45 PM
» Replies: 5
» Views: 390
problem after upgrade to ...
Forum: Installation and set up questions
Last Post: Darek
2024 May 19, 08:54 PM
» Replies: 2
» Views: 257
Monthly Adjust per Statio...
Forum: Writing plugins
Last Post: cdesouza
2024 Apr 18, 06:33 AM
» Replies: 17
» Views: 874
MQTT Plugin initialised b...
Forum: Report a problem
Last Post: cdesouza
2024 Mar 25, 03:56 PM
» Replies: 2
» Views: 236

 
  GPIO setup
Posted by: florinangeru - 2020 Aug 22, 09:57 AM - Forum: Installation and set up questions - Replies (4)

Hello every one,
I have a raspberry pi B rev2 and a 8 releey board. I marked "use gpio" option and i receive this error:

root@raspberrypi:/home/pi/SIP# python sip.py
Traceback (most recent call last):
  File "sip.py", line 24, in <module>
    import gv
  File "/home/pi/SIP/gv.py", line 103, in <module>
    report_error(u"pigpio not found. Using RPi.GPIO", e)
NameError: name 'report_error' is not defined


Can someone help me to setup the gpio pins?

At this point the program does not start due to this error...


Sorry for my bad english
Thank

Print this item

  Version 4.1 released
Posted by: dan - 2020 Aug 16, 05:21 PM - Forum: Announcements - No Replies

SIP revision 4.1 has been pushed to GitHub.
This rev includes improved responsive behavior on mobile devices and all paths are relative.

Print this item

  socket.error...but changing port didn't help, nor did reboot
Posted by: noequus - 2020 Jul 12, 01:10 AM - Forum: Installation and set up questions - Replies (5)

I installed and played with SIP for a while (I like it) but now I cannot get it to run, with this error (full terminal text below):

socket.error: No socket could be created -- (('::192.168.1.15', 8666, 0, 0): [Errno 99] Cannot assign requested address)

As you can see I changed the port (tried several). Also tried stopping the service and status with systemctl:

pi@192.168.1.15:~/SIP$ sudo service sip stop
Failed to stop sip.service: Unit sip.service not loaded.


pi@192.168.1.15:~/SIP$ systemctl status sip
Unit sip.service could not be found.


Thanks for any thoughts!
Gary

pi@192.168.1.15:~/SIP$ sudo python sip.py
Messge from Signaling plugin!: Just an example!
plugins loaded:
  mobile_app
  plugin_manager
  signaling_examples
  system_update
zones changed
Starting timing loop

[0, 0, 0, 0, 0, 0, 0, 0]
http://::192.168.1.15:8666/
Traceback (most recent call last):
  File "sip.py", line 291, in <module>
    app.run()
  File "sip.py", line 219, in run
    return web.httpserver.runsimple(func, (ip, port))
  File "/home/pi/SIP/web/httpserver.py", line 178, in runsimple
    server.start()
  File "/home/pi/SIP/cheroot/server.py", line 1820, in start
    self.prepare()
  File "/home/pi/SIP/cheroot/server.py", line 1779, in prepare
    raise socket.error(msg)
socket.error: No socket could be created -- (('::192.168.1.15', 8666, 0, 0): [Errno 99] Cannot assign requested address)

Print this item

  Beaglebone Black GPIO Mapping
Posted by: blucas986 - 2020 Jul 01, 05:27 PM - Forum: Installation and set up questions - Replies (1)

I am attempting to use a BeagleBone Black (BBB) Wireless A5, and have run into a few minor issues that required steps in addition to the setup instructions on your website. My background is mainly in embedded micro-controllers so I am somewhat new to embedded Linux. I am using Debian GNU/Linux 10 (buster) and have gone through all of the recommended updates/upgrades on Beaglebone website (https://beagleboard.org/upgrade) prior to following your setup instructions (https://github.com/Dan-in-CA/SIP/wiki/installation). Below are some additional steps taken to get sip.py to run smoothly. 

  1. "nginx" was using port 80, so I disabled it, which allowed spi.py to load without error and I can now access the SIP's home page in my browser using the IP address of the BBB.
  2. I was getting a GPIO error and realized Adafruit_BBIO.GPIO was not installed, so I followed the manual install instructions (https://pypi.org/project/Adafruit_BBIO/), which allowed sip.py to load without the GPIO error.
My question is how do the pins map between the P1 on the Pi and P9 on the BBB? 

I see the schematic for the Pi on the relay board wiki (https://github.com/KanyonKris/relay_board/wiki), which lines up with the pin mapping shown in gpio_pins.py, but I am having a hard time figuring out which corresponding pins to use on the BBB.  I have already installed the relay board plug-in and it appears to be working correctly from a software perspective.

Print this item

  Connecting Pi4 to OSPI board using Rainbow cable
Posted by: JTup - 2020 Jun 17, 02:06 PM - Forum: Installation and set up questions - Replies (4)

Hello All, 

I have a pi 4 connected to OSPI board with the pins directly plugged into the board. I have a separate power supply going into the pi, as its a pi4 which draws more power and it either doesn't start or I get the lightening (low power) symbol on startup if I don't supply its own power. 

Everything is working well in general, but I'd like to connect the pi via a rainbow cable rather than plug the GPIO pins directly into the board as I've noticed the pi4 gets a bit warm. If I have it via the Rainbow cable I can power a fan on the pi4 to cool it down. 

What I wanted to confirm is:

a) is the list of used GPIO pins here still correct? https://rayshobby.net/docs/ospi14_manual.pdf
b) Assuming if I drop the 2 x 5v ports and the earth, is this likely to cause a problem? As I have a separate power supply going in I don't believe it would, but just checking. 

Many thanks in advance.

Chris

Print this item

  SIP in docker container
Posted by: mimer - 2020 Jun 12, 10:44 AM - Forum: Installation and set up questions - Replies (10)

Hi all,
   I have just installed SIP into a container (via git), exposed the port 80 and started off the service by python3 sip.py from /SIP within the container.
  Everything worked out, service is reachable....
   However, I tried to enable the relay_16 plugin and got the following reported by sip on the console:

Code:
::ffff:192.168.178.70:37038 - - [12/Jun/2020 09:53:22] "HTTP/1.1 GET /plugins" - 200 OK
Code:
::ffff:192.168.178.70:37038 - - [12/Jun/2020 09:53:22] "HTTP/1.1 GET /api/log" - 200 OK
Code:
::ffff:192.168.178.70:37038 - - [12/Jun/2020 09:53:25] "HTTP/1.1 GET /browse-plugins" - 200 OK
Code:
::ffff:192.168.178.70:37038 - - [12/Jun/2020 09:53:25] "HTTP/1.1 GET /api/log" - 200 OK
Code:
::ffff:192.168.178.70:37038 - - [12/Jun/2020 09:53:34] "HTTP/1.1 GET /inst-plugins" - 303 See Other
Code:
::ffff:192.168.178.70:37038 - - [12/Jun/2020 09:53:34] "HTTP/1.1 GET /plugins" - 200 OK
Code:
::ffff:192.168.178.70:37038 - - [12/Jun/2020 09:53:35] "HTTP/1.1 GET /api/log" - 200 OK
Code:
::ffff:192.168.178.70:37038 - - [12/Jun/2020 09:53:44] "HTTP/1.1 GET /upd-plugins" - 303 See Other
Code:
System is restarting
Code:
zones changed
Code:
GIPO 11 switched to state 1
Code:
[0, 0, 0, 0, 0, 0, 0, 0]
Code:
::ffff:192.168.178.70:37038 - - [12/Jun/2020 09:53:44] "HTTP/1.1 GET /restart" - 200 OK
Code:
::ffff:192.168.178.70:37038 - - [12/Jun/2020 09:53:44] "HTTP/1.1 GET /api/log" - 200 OK
Code:
Restarting...
Code:
::ffff:192.168.178.70:37038 - - [12/Jun/2020 09:53:45] "HTTP/1.1 GET /static/scripts/goHome.js" - 200
Code:
Failed to connect to bus: No such file or directory
Code:
::ffff:192.168.178.70:37038 - - [12/Jun/2020 09:53:45] "HTTP/1.1 GET /" - 200 OK
Code:
::ffff:192.168.178.70:37038 - - [12/Jun/2020 09:53:45] "HTTP/1.1 GET /api/log" - 200 OK


 The browser reported back in a (I guess browser provided window):

SIP could not restart
Please restart the programm from command line

This I did and the plugin is showing up...everything sees ok...
Somebody has an idea to overcome that restart-step? or can somebody maybe post a working Dockerfile and a docker run ....?

Many thanks for your support!

Kind regards,
     Michael

Print this item

  Minimum Run Time
Posted by: PolarBear56 - 2020 Jun 11, 07:39 AM - Forum: Feature requests - Replies (7)

Would be nice to limit the system to not run for anything less than x mins/secs in the Weather Plugin.  My system ran for a whopping 6 secs per station yesterday.

Cheers!

Print this item

  Relay 16 plugin - Pin definitions
Posted by: marcusp - 2020 Jun 09, 07:21 PM - Forum: Plugin questions - Replies (2)

Hi Dan,
could you add the pins definition possibility to the Relay16 plugin? It means which relay is wired to which Raspberry PI pin. I see I can set it in the relay16.py file, line #70, but I'm afraid when the plugin will be updated, my config will reset.

Print this item

  Netatmo plugin ?
Posted by: marcusp - 2020 Jun 09, 07:06 PM - Forum: Plugin suggestions - Replies (2)

Is possible to integrate Netatmo weather station instead openwathermap.org?

I think in many locations openweather isn't so precisious.

Print this item

  post upgrade, relative URL support broken
Posted by: msambol - 2020 Jun 09, 03:53 PM - Forum: Installation and set up questions - Replies (8)

Hi Dan,

I just upgraded to v4 from 3 and ran into a problem. In order to avoid opening a port in my router specifically for SIP, I had been running it at 

https://mydomain.com/sip/

I have one machine which listens on 443 and proxies to others depending on the URL, e.g. in this case to a PI running SIP for all URLs that start with /sip/

With version 3, this worked fine, but it doesn't work in 4. The first problem I tracked down is that base.html has

Code:
    <script src="/static/scripts/jquery-3.4.1.min.js"></script>
    <script src="/static/bootstrap-3.3.7/js/bootstrap.min.js"></script>
    <script src="/static/bootstrap-timepicker/js/bootstrap-timepicker.js"></script>

where previously it only had 

Code:
<link rel="stylesheet" href="$app_path('/static/...

I patched those manually, so now the main page shows up, but all the menu buttons are absolute URLs as well, e.g. the Options button goes to /vo

I could try tracking those links down, but it seems this is deeper than just changes to the HTML. Chrome dev tools reports:

jquery-3.4.1.min.js:2 GET https://mydomain.com/api/log?date=2020-06-09 net::ERR_BLOCKED_BY_CLIENT
jquery-3.4.1.min.js:2 GET https://mydomain.com/api/status 404 (Not Found)


Is there a way I can get the new version to work under /sip/? 

In the meantime I'll try changing my setup to use sip.mydomain.com instead.

Also, seemingly unrelated, while accessing it via local IP address rather than domain/sip I see a persistent error in chome developer tools:

jquery-3.4.1.min.js:2 GET http://10.0.0.128/api/log?date=2020-06-09 net::ERR_BLOCKED_BY_CLIENT

it looks like this fires and fails every 30 seconds.

Print this item