Mr-JR
(James R)
June 30, 2021, 6:43pm
1
Basic question that I’m sure others have had …
Im using jython scripting and the HTTP module to use sendHttpGetRequest … is there an easy way to do an URLencode? i.e. what’s the preferred OpenHab way to encode a URL?
I’m manually encoding it which works but I need a general solution.
Thanks!
1 Like
python/jython overs the possibility to use the function urlencode.
E.g. see at
Hi, I’m running the latest version of OH3 on Docker.
Migration has not been painless but I was doing fine till yesterday.
I have a rule that is triggered by a sensor state change.
Step 1 : I want to take a snapshot with a cctv cam
Step 2 : I will send the image to another application running on docker.
Step 3 : I will receive results in JSON format.
This is what I have so far:
# imports
from org.slf4j import LoggerFactory
import urllib2
import urllib
import base64
# Start The logger
log …
1 Like
Mr-JR
(James R)
June 30, 2021, 7:35pm
3
Thanks Wolfgang … turns out what I really only needed urllib.quote_plus
… that did the trick. Thank you!
1 Like
Can you share our final solution?