Search found 19 matches

by digdug3
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?
by digdug3
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.
by digdug3
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.
by digdug3
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
...
by digdug3
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 ...
by digdug3
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))"
Should display the paths Python3 is using:

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
by digdug3
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.
by digdug3
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/
by digdug3
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

Code: Select all

ls -l /usr/lib/python*/ssl.py
by digdug3
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*'
by digdug3
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 ...
by digdug3
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?
by digdug3
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
by digdug3
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:

Code: Select all

python3 --version
and a

Code: Select all

python --version
And did you change the cronjob as well?

Code: Select all

*/5 * * * * sudo python3 /home/pi/domoticz/scripts/python/buienradar.py silent
by digdug3
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.
by digdug3
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!
by digdug3
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.
by digdug3
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 ...