Search found 19 matches
- Monday 23 April 2018 7:40
- Forum: Python
- Topic: Python buienradar (is it going to rain) script
- Replies: 38
- Views: 8565
Re: Python buienradar (is it going to rain) script
How did you upload the script?
- Thursday 08 March 2018 7:50
- Forum: Python
- Topic: Python buienradar (is it going to rain) script
- Replies: 38
- Views: 8565
Re: Python buienradar (is it going to rain) script
Just updated the buienradar url.
- Wednesday 14 February 2018 8:31
- Forum: Python
- Topic: Python buienradar (is it going to rain) script
- Replies: 38
- Views: 8565
Re: Python buienradar (is it going to rain) script
I understand. It has something to do with your python using the /usr/local/lib path instead of the /usr/lib.
As for google, you are not the only one having this problem...
If I find a new solution, I'll post it here.
As for google, you are not the only one having this problem...
If I find a new solution, I'll post it here.
- Tuesday 13 February 2018 18:06
- Forum: Python
- Topic: Python buienradar (is it going to rain) script
- Replies: 38
- Views: 8565
Re: Python buienradar (is it going to rain) script
My fault, should be after import sys, like this:
Code: Select all
import sys
sys.path.append('/usr/lib/python3.5')
import datetime
import time
import os
...
- Tuesday 13 February 2018 16:12
- Forum: Python
- Topic: Python buienradar (is it going to rain) script
- Replies: 38
- Views: 8565
Re: Python buienradar (is it going to rain) script
dist-packages is "nothing", somehow your python is looking at /usr/local/lib/ and mine at /usr/lib/ Could you "fix" the following lines in the code: import sys import datetime import time import os ... to import sys sys.path.append('/usr/lib/python3.5') import datetime import time import os ... Edit ...
- Tuesday 13 February 2018 14:01
- Forum: Python
- Topic: Python buienradar (is it going to rain) script
- Replies: 38
- Views: 8565
Re: Python buienradar (is it going to rain) script
Code: Select all
python3 -c "import sys; print('\n'.join(sys.path))"
Code: Select all
/usr/lib/python35.zip
/usr/lib/python3.5
/usr/lib/python3.5/plat-arm-linux-gnueabihf
/usr/lib/python3.5/lib-dynload
/usr/local/lib/python3.5/dist-packages
/usr/lib/python3/dist-packages
- Tuesday 13 February 2018 11:54
- Forum: Python
- Topic: Python buienradar (is it going to rain) script
- Replies: 38
- Views: 8565
Re: Python buienradar (is it going to rain) script
That one is empty here. So I think Python is using the wrong library.
- Tuesday 13 February 2018 10:18
- Forum: Python
- Topic: Python buienradar (is it going to rain) script
- Replies: 38
- Views: 8565
Re: Python buienradar (is it going to rain) script
And what do you have in /usr/local/lib/python3.5/
- Tuesday 23 January 2018 16:58
- Forum: Python
- Topic: Python buienradar (is it going to rain) script
- Replies: 38
- Views: 8565
Re: Python buienradar (is it going to rain) script
Lot more than I have, but at least the same...
What about the module itself? In my stretch installation they are in
What about the module itself? In my stretch installation they are in
Code: Select all
ls -l /usr/lib/python*/ssl.py
- Tuesday 23 January 2018 12:25
- Forum: Python
- Topic: Python buienradar (is it going to rain) script
- Replies: 38
- Views: 8565
Re: Python buienradar (is it going to rain) script
Hmm, thats the same and this
Code: Select all
dpkg-query -l 'libpython*'
- Tuesday 23 January 2018 8:23
- Forum: Python
- Topic: Python buienradar (is it going to rain) script
- Replies: 38
- Views: 8565
Re: Python buienradar (is it going to rain) script
Could you do a dpkg-query -l 'libssl*' and post the results? I have: pi@domoticz:~ $ dpkg-query -l 'libssl*' Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name ...
- Monday 22 January 2018 14:56
- Forum: Python
- Topic: Python buienradar (is it going to rain) script
- Replies: 38
- Views: 8565
Re: Python buienradar (is it going to rain) script
Might be this: http://www.domoticz.com/forum/viewtopic ... 3&start=20
Did you install libssl?
Did you install libssl?
- Monday 22 January 2018 12:35
- Forum: Python
- Topic: Python buienradar (is it going to rain) script
- Replies: 38
- Views: 8565
Re: Python buienradar (is it going to rain) script
Do you use jessie or stretch on your pi?
- Monday 22 January 2018 12:33
- Forum: Python
- Topic: Python buienradar (is it going to rain) script
- Replies: 38
- Views: 8565
Re: Python buienradar (is it going to rain) script
"Google" tell me you could try to install this:
Code: Select all
sudo apt-get install libssl-dev openssl
- Monday 22 January 2018 8:31
- Forum: Python
- Topic: Python buienradar (is it going to rain) script
- Replies: 38
- Views: 8565
Re: Python buienradar (is it going to rain) script
Could you do a:
and a
And did you change the cronjob as well?
Code: Select all
python3 --version
Code: Select all
python --version
Code: Select all
*/5 * * * * sudo python3 /home/pi/domoticz/scripts/python/buienradar.py silent
- Sunday 21 January 2018 15:43
- Forum: Python
- Topic: Python buienradar (is it going to rain) script
- Replies: 38
- Views: 8565
Re: Python buienradar (is it going to rain) script
Updated the script for the new url, add https etc. See first post.
- Thursday 30 March 2017 17:06
- Forum: PHP and all others
- Topic: Get domoticz settings from script
- Replies: 2
- Views: 1907
Re: Get domoticz settings from script
Thank you lonebaggie! Tried it and was able to get the info!
- Saturday 25 March 2017 15:18
- Forum: PHP and all others
- Topic: Get domoticz settings from script
- Replies: 2
- Views: 1907
Get domoticz settings from script
Is it possible to read the Domoticz settings from a script? (Longitude, Latitude maybe even the Domoticz ip/port)
As these are used in many scripts.
As these are used in many scripts.
- Saturday 29 October 2016 13:12
- Forum: Python
- Topic: Python buienradar (is it going to rain) script
- Replies: 38
- Views: 8565
Python buienradar (is it going to rain) script
After first trying the lua (isitgonnarain) for a few months I decided to convert the original perl buienradar example script to python, this means no additional (perl) packages are needed anymore. Edit 06-01-2018: Updated script for python 3.x, be sure it's installed. Code cleanup and https fixes ...