This object is in archive! 
Add CHARTS to Meters
In Progress
This way we can see how value moved during hours/days/week/month
No connection
Real-time notifications may not work
May be in a first time (and it would be nice to have it anyway), it could be nice to be able to export events into csv in order to use "the power of excel" (or open office obviously)
May be in a first time (and it would be nice to have it anyway), it could be nice to be able to export events into csv in order to use "the power of excel" (or open office obviously)
http://community.zipato.com/responses/add-charts-to-meters
http://community.zipato.com/responses/add-charts-to-meters
or simply create a google spreadsheet device/endpoint (from formkey) that saves values via a Form
or simply create a google spreadsheet device/endpoint (from formkey) that saves values via a Form
Thanks, in the meanwhile i use sen.se to graph it, but it would make sense to have it in zipato gui, domotics also means metrology for me.
Thanks, in the meanwhile i use sen.se to graph it, but it would make sense to have it in zipato gui, domotics also means metrology for me.
I asked for a login on sen.se, thank you sebastien, it looks interesting.
I asked for a login on sen.se, thank you sebastien, it looks interesting.
Did not make the form+spreadsheet myself but should be quite direct with a HTTP request. The problem is that today the zipabox can't get parameter values (eg temperature) and put it in a HTTP request (from what I saw - it's another idea here). So I think it can't work right now ;-) Hope it will be possible soon !
@Sebastien also requested a sen.se access yesterday. How do you send the parameter values to the sen.se platform ?
Did not make the form+spreadsheet myself but should be quite direct with a HTTP request. The problem is that today the zipabox can't get parameter values (eg temperature) and put it in a HTTP request (from what I saw - it's another idea here). So I think it can't work right now ;-) Hope it will be possible soon !
@Sebastien also requested a sen.se access yesterday. How do you send the parameter values to the sen.se platform ?
here is a post explaining Cheap and easy event hooks using Google Spreadsheet Forms [Event Tracking]
here is a post explaining Cheap and easy event hooks using Google Spreadsheet Forms [Event Tracking]
Thank you, very interesting.
I did the post about the parameters ;)
Thank you, very interesting.
I did the post about the parameters ;)
in fact my data are not send to sen.se from my zipato box, but from a soft i write that get data from my oregon devices and send them both to zipato and sen.se.
This also mean that unfortunately i can't graph my zwave sensors, but in my case most of my zwave are 'actionners' not sensors.
in fact my data are not send to sen.se from my zipato box, but from a soft i write that get data from my oregon devices and send them both to zipato and sen.se.
This also mean that unfortunately i can't graph my zwave sensors, but in my case most of my zwave are 'actionners' not sensors.
Any news ?
Any news ?
Another site that can be used to do charts externally: https://www.thingspeak.com
But to use it we need to add parameters in a http-request like with google forms
Another site that can be used to do charts externally: https://www.thingspeak.com
But to use it we need to add parameters in a http-request like with google forms
We will publish this feature very soon.
We will publish this feature very soon.
I made a video about Thingspeak (even if at that time it is not possible to use parameters), it is in french, but the sound is not really mandatory:
http://www.youtube.com/watch?v=eU2bpfeGNrg
I made a video about Thingspeak (even if at that time it is not possible to use parameters), it is in french, but the sound is not really mandatory:
http://www.youtube.com/watch?v=eU2bpfeGNrg
could you tell us what means very soon please ? are talking in days / weeks / months ?
Tks,
could you tell us what means very soon please ? are talking in days / weeks / months ?
Tks,
we need to publish few new features and expansion modules first. You can expect this feature to be released before July.
we need to publish few new features and expansion modules first. You can expect this feature to be released before July.
ok tks for clarification
ok tks for clarification
Hi, meanwhile I would like to be able to gather meters values within tools like sense.se thingspeak or Cosm, I had figure out how to use the rest API to do it, but I'm only missing the format of the password parameter for the login method. could you please tell me how to generate it, I guess it has to be a SHA1 hash of plain text password and nonce, but I don't know the exact format.
Help would be appreciated
Hi, meanwhile I would like to be able to gather meters values within tools like sense.se thingspeak or Cosm, I had figure out how to use the rest API to do it, but I'm only missing the format of the password parameter for the login method. could you please tell me how to generate it, I guess it has to be a SHA1 hash of plain text password and nonce, but I don't know the exact format.
Help would be appreciated
Gregory: Without the HTTP request with variable we are kinda stuck inside the Zipato dashboard
Gregory: Without the HTTP request with variable we are kinda stuck inside the Zipato dashboard
Not really in fact, thanks to the rest API, you can poll values from your Zipabox and use it in other applications. I finnaly manage to reverse engineer the API calls need for that purpose. My script is only a proof of concept, it poll every 5 minutes the value of a temperature sensor and publish it to sen.se. Next step is to have it done on my raspberry and polish the code.
Not really in fact, thanks to the rest API, you can poll values from your Zipabox and use it in other applications. I finnaly manage to reverse engineer the API calls need for that purpose. My script is only a proof of concept, it poll every 5 minutes the value of a temperature sensor and publish it to sen.se. Next step is to have it done on my raspberry and polish the code.
I would love to know how you did :)
I would love to know how you did :)
do you talk about the rest API of the box or the cloud service one ?
do you talk about the rest API of the box or the cloud service one ?
Gregory...please share
Gregory...please share
I'll prepare a thread describing the process. Hope to be able to post it tomorrow
I'll prepare a thread describing the process. Hope to be able to post it tomorrow
Thanks in advance Gregory !
Thanks in advance Gregory !
Thanks Gregory!!
Thanks Gregory!!
Hi,
Sorry but I have to too much time to spend on writing this thread so it gives only the baseline, I'll try to write a more polished article later with code example.
So in a nutshell, to get the meters values, you have to deal with the REST Api (same used by the Iphone application)
1) do a GET request to URL "http://my.zipato.com:8080/zipato-web/json/Initialize", this will return in teh response header a JSESSIONID and a NONCE values. all your next request will have to get the JSESSIONID in the headers, NONCE is a randomly generated number for unique use only (see point 2).
2) Then do a POST request to URL "http://my.zipato.com:8080/zipato-web/json/Initialize" with parameters 'username','password' and 'method' in the post data, username value is your login, method has to be set to 'SHA1', and password has to be generated as following : SHA1(nonce + SHA1(plain_text_password))
Now that you're authenticated you can start using the REST API.
-> url "http://my.zipato.com:8080/zipato-web/rest/meters/" returns full information about all meters
-> url "http://my.zipato.com:8080/zipato-web/rest/meters/values/" returns only values of meters. Meters are indentified by GUID, You have to analyze return of both urls mention above in order to map those GUID with your meters in the my.zipato dashboard.
Have fun, Grégory
Hi,
Sorry but I have to too much time to spend on writing this thread so it gives only the baseline, I'll try to write a more polished article later with code example.
So in a nutshell, to get the meters values, you have to deal with the REST Api (same used by the Iphone application)
1) do a GET request to URL "http://my.zipato.com:8080/zipato-web/json/Initialize", this will return in teh response header a JSESSIONID and a NONCE values. all your next request will have to get the JSESSIONID in the headers, NONCE is a randomly generated number for unique use only (see point 2).
2) Then do a POST request to URL "http://my.zipato.com:8080/zipato-web/json/Initialize" with parameters 'username','password' and 'method' in the post data, username value is your login, method has to be set to 'SHA1', and password has to be generated as following : SHA1(nonce + SHA1(plain_text_password))
Now that you're authenticated you can start using the REST API.
-> url "http://my.zipato.com:8080/zipato-web/rest/meters/" returns full information about all meters
-> url "http://my.zipato.com:8080/zipato-web/rest/meters/values/" returns only values of meters. Meters are indentified by GUID, You have to analyze return of both urls mention above in order to map those GUID with your meters in the my.zipato dashboard.
Have fun, Grégory
tks a lot for that. could you share you script as it is so we can adapt it to our needs ?
Basically I tried to do what you said above in php and it doesn't work. When I do the post step 2, it gives back same as in step one and when I ask for meter I get NULL.
Tks,
tks a lot for that. could you share you script as it is so we can adapt it to our needs ?
Basically I tried to do what you said above in php and it doesn't work. When I do the post step 2, it gives back same as in step one and when I ask for meter I get NULL.
Tks,
Ok I get it work. For those who are insterested please find below my php code very dirty but I'm sure you'll clean it yourself :)
Ok I get it work. For those who are insterested please find below my php code very dirty but I'm sure you'll clean it yourself :)
Xmeslin: where do implement this php code? How do you fetch the data to sen.se?
Thanks for explaining for a rookie
Xmeslin: where do implement this php code? How do you fetch the data to sen.se?
Thanks for explaining for a rookie
I have a linux server (NAS) doing that.
This php code is called every 5 min with cron.
I modified a bit yesterday and now I store all my temps in a mysql database and graph it with highstock. If you want to push to sen.se you' would need to change my sql query to http.
See below : Again pretty dirt but I wanted to start graph very fast and I'm not a dev guru
I have a linux server (NAS) doing that.
This php code is called every 5 min with cron.
I modified a bit yesterday and now I store all my temps in a mysql database and graph it with highstock. If you want to push to sen.se you' would need to change my sql query to http.
See below : Again pretty dirt but I wanted to start graph very fast and I'm not a dev guru
Ok I did a try for sen.se and please find a code example:
Ok I did a try for sen.se and please find a code example:
i can give example in Python if needed !
i can give example in Python if needed !
Hello,
Have you new of this function
thank you
Hello,
Have you new of this function
thank you
Could someone please explain us how to extract and record data from meters please? ;)
As far as I am concerned, I own a nas (synology) and I know that if I host a php file on it, I can use it to call functions or send commands...etc (I use one for turning on/off wifi with a zipabox rule).
But could anybody explain exactly how to record data directly on the nas and display a graphic?
Could someone please explain us how to extract and record data from meters please? ;)
As far as I am concerned, I own a nas (synology) and I know that if I host a php file on it, I can use it to call functions or send commands...etc (I use one for turning on/off wifi with a zipabox rule).
But could anybody explain exactly how to record data directly on the nas and display a graphic?
and can run add a entry in cron ?
Do you have some basics on scripting / programming ? If yes I'll tell how use php + mysql + highchart to do it
and can run add a entry in cron ?
Do you have some basics on scripting / programming ? If yes I'll tell how use php + mysql + highchart to do it
Well actually it seems pretty easy now to execute a script or command with DSM 4.3 (synology os)
I found a tutorial which explain how to do it.
If you can post the files (with XXXX where I need to replace data) and tell me where to put them/how to name them, maybe I could find by myself how to use them.
Btw: si tu préfère m'expliquer en français c'est tout à fait possible ;)
Well actually it seems pretty easy now to execute a script or command with DSM 4.3 (synology os)
I found a tutorial which explain how to do it.
If you can post the files (with XXXX where I need to replace data) and tell me where to put them/how to name them, maybe I could find by myself how to use them.
Btw: si tu préfère m'expliquer en français c'est tout à fait possible ;)
ok phase 1 : run the script below every 10 min. It will take all temperature and put them in a database. you need to create it first with the field and it also send 1 temp (Julie) to an online tools for example sen.se :
config.php contains only info to connect the mysql database:
ok phase 1 : run the script below every 10 min. It will take all temperature and put them in a database. you need to create it first with the field and it also send 1 temp (Julie) to an online tools for example sen.se :
config.php contains only info to connect the mysql database:
once you have your database, you can easily chart it using library such as highstock hichchart. My code at home is pretty complex so I'll need to simplify it before posting it.
Let me know if you need help here too.
once you have your database, you can easily chart it using library such as highstock hichchart. My code at home is pretty complex so I'll need to simplify it before posting it.
Let me know if you need help here too.
Wow... ;)
Thanks for sharing!!
It seems harder to understand than what I expected ^^I ll have to give it a try but I think it will be a little bit difficult for me...I already configured the files with my own sen.se key and user/pass for the login of zipabox/mysql but I m not sure about how I can extract data in the mysql db
Wow... ;)
Thanks for sharing!!
It seems harder to understand than what I expected ^^I ll have to give it a try but I think it will be a little bit difficult for me...I already configured the files with my own sen.se key and user/pass for the login of zipabox/mysql but I m not sure about how I can extract data in the mysql db
basically there are 2 options.
Either you use cloud chart such as sen.se and then you do not need to store in mysql database but you rely on cloud/internet connection or you want to be able to work offline and then you need mysql + chart site hosted on the NAS such as high chart.
basically there are 2 options.
Either you use cloud chart such as sen.se and then you do not need to store in mysql database but you rely on cloud/internet connection or you want to be able to work offline and then you need mysql + chart site hosted on the NAS such as high chart.
Hello,
I just saw in the general settings of the box that there is a paid service (monthly fee) to have charts !!!!
Is it a joke or we will have to pay a monthly fee to get one of the most basic feature ?
Hope this will change ...
In all case there is no way to buy it...
Hello,
I just saw in the general settings of the box that there is a paid service (monthly fee) to have charts !!!!
Is it a joke or we will have to pay a monthly fee to get one of the most basic feature ?
Hope this will change ...
In all case there is no way to buy it...
Look here:
http://community.zipato.com/responses/new-parameters-wallet-and-services-_3
Look here:
http://community.zipato.com/responses/new-parameters-wallet-and-services-_3
Here is an update regarding my configuration.
I bought a Raspberry Pi and a Aeon Labs Z-Stick (Zwave USB interface).
There are multiple free software solutions to make them work.
I finally chose agocontrol, which relies on a AMQP bus to manage zwave messages (and the openzwave library). It's a very open solution and it can be extended with python clients.
I attached 3 everspring ST814 multilevel sensors, which were originally attached to my zipabox. My goal was to send temperature and humidity values to the sen.se platform. Agocontrol comes with a working datalogger to a sqlite db in standard.It took me a few days to fully understand the agocontrol way of programming zwave events handlers. It's now done and it works very well. One of the benefits of this approach is that it's a full "push" approach (without any polling). When the sensor updates info (depending on how it's configured) the event handler simply pushes the same info to sen.se, which notably provides analysis and graph capabilities out of the box. The only "intelligence" to implement is the mapping between zwave devices and sen.se feeds (done it with a json config file).
Will see how it behaves in the long run. But it seems to be the best approach regarding configure once / run continuously devices.
Here is an update regarding my configuration.
I bought a Raspberry Pi and a Aeon Labs Z-Stick (Zwave USB interface).
There are multiple free software solutions to make them work.
I finally chose agocontrol, which relies on a AMQP bus to manage zwave messages (and the openzwave library). It's a very open solution and it can be extended with python clients.
I attached 3 everspring ST814 multilevel sensors, which were originally attached to my zipabox. My goal was to send temperature and humidity values to the sen.se platform. Agocontrol comes with a working datalogger to a sqlite db in standard.It took me a few days to fully understand the agocontrol way of programming zwave events handlers. It's now done and it works very well. One of the benefits of this approach is that it's a full "push" approach (without any polling). When the sensor updates info (depending on how it's configured) the event handler simply pushes the same info to sen.se, which notably provides analysis and graph capabilities out of the box. The only "intelligence" to implement is the mapping between zwave devices and sen.se feeds (done it with a json config file).
Will see how it behaves in the long run. But it seems to be the best approach regarding configure once / run continuously devices.
Is there any project starting to have something similar to the myVera project? I guess with the new API and scripts like xmeslin above, it would be possible...
Is there any project starting to have something similar to the myVera project? I guess with the new API and scripts like xmeslin above, it would be possible...
I do not know the project but : API + mysql + highcharts library => chart very easy to do and customize to look exactly as you want.
I do not know the project but : API + mysql + highcharts library => chart very easy to do and customize to look exactly as you want.
@xmeslin: I wish it would be that easy for me too ^^
Maybe one day someone will create a detailed tutorial to help people to set this up step by step ;)
@xmeslin: I wish it would be that easy for me too ^^
Maybe one day someone will create a detailed tutorial to help people to set this up step by step ;)
I already code a python script with a configuration file to easily set-up graphs on sens.se. I need to test it a little bit and then to build a doc. It is not as good as the graphs from zipato or an app with highchart library but it can be a good start! From this script it would be easy to improve it and store data in database and than to add a module to graph with highcharts
I already code a python script with a configuration file to easily set-up graphs on sens.se. I need to test it a little bit and then to build a doc. It is not as good as the graphs from zipato or an app with highchart library but it can be a good start! From this script it would be easy to improve it and store data in database and than to add a module to graph with highcharts
Cool! I wish it will help people like me ;)
Cool! I wish it will help people like me ;)
Here are two snapshots of what I configured on my sen.se dashboard.
works with agocontrol on Raspberry Pi and a single python event handler which sends data to sen.se and also to virtual devices on my zipabox.
Have been running fine for a few weeks (with a few reboots although).
Won't have time to write a doc in the next few weeks.
Contact me if you're interested in the python script. Basically the main part looks like this:
Here are two snapshots of what I configured on my sen.se dashboard.
works with agocontrol on Raspberry Pi and a single python event handler which sends data to sen.se and also to virtual devices on my zipabox.
Have been running fine for a few weeks (with a few reboots although).
Won't have time to write a doc in the next few weeks.
Contact me if you're interested in the python script. Basically the main part looks like this:
A note regarding my previous post:
Please be aware that what I described does not use my zipabox or the zipato cloud api.
The concerned Zwave devices are directly attached to a Raspberry Pi running agocontrol, which is by the way clearly less easy that attaching devices to the zipabox.
After a few months, by not releasing the feature to send values into http requests (which I consider as a must have and very simple to do with rules) the Zipato team has encouraged me to find an alternate solution ;-)
That's why I consider it relevant to post this story here.
A note regarding my previous post:
Please be aware that what I described does not use my zipabox or the zipato cloud api.
The concerned Zwave devices are directly attached to a Raspberry Pi running agocontrol, which is by the way clearly less easy that attaching devices to the zipabox.
After a few months, by not releasing the feature to send values into http requests (which I consider as a must have and very simple to do with rules) the Zipato team has encouraged me to find an alternate solution ;-)
That's why I consider it relevant to post this story here.
whaou! good job!
whaou! good job!
Hello,
I first created a doc in French for Open.Sen.se : http://frederic.ravetier-on.fr/2013/10/16/afficher-des-donnees-sous-forme-de-graphiques-avec-open-sen-se-les-objets-connectes/
Coming soon : the script and its documentation
Hello,
I first created a doc in French for Open.Sen.se : http://frederic.ravetier-on.fr/2013/10/16/afficher-des-donnees-sous-forme-de-graphiques-avec-open-sen-se-les-objets-connectes/
Coming soon : the script and its documentation
Waiting for this!! Thanks
Waiting for this!! Thanks
Finally I decided to publish a project on sourceforge. It includes the code and a wiki page with some explanations. If some other people wants to participate, please ask!
https://sourceforge.net/projects/zipabox-connector
Finally I decided to publish a project on sourceforge. It includes the code and a wiki page with some explanations. If some other people wants to participate, please ask!
https://sourceforge.net/projects/zipabox-connector
Great!! Thanks a lot (ou plutôt Merci! ;)
Can I use my synology nas as host for these files?
How can I send the informations periodically to sen.se ?
Great!! Thanks a lot (ou plutôt Merci! ;)
Can I use my synology nas as host for these files?
How can I send the informations periodically to sen.se ?
Yes you can.
I did not try but it looks like the cron service is available, have a look to http://lelaboratoiredugeek.com/2013/02/25/tuto-creer-une-tache-planifiee-sur-un-nas-synology/
Yes you can.
I did not try but it looks like the cron service is available, have a look to http://lelaboratoiredugeek.com/2013/02/25/tuto-creer-une-tache-planifiee-sur-un-nas-synology/
But I guess if you activated an automatic sleep mode it won't sleep anymore, but it is NAS :), it is its job!
But I guess if you activated an automatic sleep mode it won't sleep anymore, but it is NAS :), it is its job!
Great Fred! Your the bom!
Great Fred! Your the bom!
Yeahhh!!! Thanks Fred!! I'll give it a try right now!!
Keep you updated ;)
Thanks again!
Yeahhh!!! Thanks Fred!! I'll give it a try right now!!
Keep you updated ;)
Thanks again!
In the config.ini file, is there any space between the = and the sense key?
I have put it like this:sense_key=xxxxxxxxxxxxxxxxxxxx
Concerning the sensors, I put this:
Is it the good way to complete the informations?
Which file do I have to execute?
zipabox.sh or zipabox.py?
Thanks in advance
In the config.ini file, is there any space between the = and the sense key?
I have put it like this:sense_key=xxxxxxxxxxxxxxxxxxxx
Concerning the sensors, I put this:
Is it the good way to complete the informations?
Which file do I have to execute?
zipabox.sh or zipabox.py?
Thanks in advance
hello
You should ask your question on the page of the project (if it is possible! :D)
I am not using spaces but I think python is removing the spaces...
It looks good.
The shell is nice to run in a crontab but if python is well setup and you set-up executable rights on the file it should work in standalone.
I forgot to say that you need to set executable rights!
hello
You should ask your question on the page of the project (if it is possible! :D)
I am not using spaces but I think python is removing the spaces...
It looks good.
The shell is nice to run in a crontab but if python is well setup and you set-up executable rights on the file it should work in standalone.
I forgot to say that you need to set executable rights!
I tried but it did not work on my synology ;(
I installed python on it, but I dunno how to check if is well launching the script you created.
I'm launching the script with the task planner of my nas.
When I check the config.ini file, I notice that the password is still there, and no passwordsha1 is created. So I suppose the script was not executed.
I also have modified the zipabox.py file
I have put the files in web directory of my nas, so I have put this:
cd /Volume1/web/sense
python Zipabox.py
I'll post a message on the discussion page of the sourceforge project...
I tried but it did not work on my synology ;(
I installed python on it, but I dunno how to check if is well launching the script you created.
I'm launching the script with the task planner of my nas.
When I check the config.ini file, I notice that the password is still there, and no passwordsha1 is created. So I suppose the script was not executed.
I also have modified the zipabox.py file
I have put the files in web directory of my nas, so I have put this:
cd /Volume1/web/sense
python Zipabox.py
I'll post a message on the discussion page of the sourceforge project...
At line 70, replace by:
self.config.write(open(r'config.ini', 'w'))
Then the password will be set in sha1, anyway it is written in the logs so you can copy and paste.
I will publish a new version...
First run it in ssh with the python and you should see logs like:
INFO:Zipabox:Starting Processus...INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): my.zipato.com
At line 70, replace by:
self.config.write(open(r'config.ini', 'w'))
Then the password will be set in sha1, anyway it is written in the logs so you can copy and paste.
I will publish a new version...
First run it in ssh with the python and you should see logs like:
INFO:Zipabox:Starting Processus...INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): my.zipato.com
Thanks Fred! A few questions.
- I run the script but can't see if it was successfull to sen.se or not.
- What apps are you using in sen.se?
- storing the script on a webserver, how to execute it using a schedule?
Thanks Fred! A few questions.
- I run the script but can't see if it was successfull to sen.se or not.
- What apps are you using in sen.se?
- storing the script on a webserver, how to execute it using a schedule?
- I run the script but can't see if it was successfull to sen.se or not.
There is a log that say: INFO:Zipabox:Data sent to Sen.se
which means it has been sent
- What apps are you using in sen.se?
Mainly MultiViz
- storing the script on a webserver, how to execute it using a schedule?
By using a crontab on linux
- I run the script but can't see if it was successfull to sen.se or not.
There is a log that say: INFO:Zipabox:Data sent to Sen.se
which means it has been sent
- What apps are you using in sen.se?
Mainly MultiViz
- storing the script on a webserver, how to execute it using a schedule?
By using a crontab on linux
Thanks!
- Would it be possible to add current consumption? Since the accumulated i can already follow on dashboard.
- I get an error connecting to sen.se (Attachment)
Thanks!
- Would it be possible to add current consumption? Since the accumulated i can already follow on dashboard.
- I get an error connecting to sen.se (Attachment)
Hello,
I added the current consumption, just download the last zip and replace the Zipabox.py and have a look to the config example
It was a bug in the script when there is an error during connexion to open.sen.se, it is corrected you will see the error in the logs
Hello,
I added the current consumption, just download the last zip and replace the Zipabox.py and have a look to the config example
It was a bug in the script when there is an error during connexion to open.sen.se, it is corrected you will see the error in the logs
Thanks! I have now all 3 values types in the config file. Temp, accum. cons. and current consumption. But still.. For all of them it says...
INFO:Zipabox:NO FEED for Device : xxxxxxx-dc00-418a-ace6-fc5778fb07e8(Refrigerator ) : 0.50
When running the API for the same device uuid and ID it works.
Thanks! I have now all 3 values types in the config file. Temp, accum. cons. and current consumption. But still.. For all of them it says...
INFO:Zipabox:NO FEED for Device : xxxxxxx-dc00-418a-ace6-fc5778fb07e8(Refrigerator ) : 0.50
When running the API for the same device uuid and ID it works.
This would be nice...
http://pythonhosted.org/APScheduler/
So i could store the script on a cloud web server and then just let in run.
This would be nice...
http://pythonhosted.org/APScheduler/
So i could store the script on a cloud web server and then just let in run.
I found it! There is a bug in the section of the current consumption. Check attachment.
Now it works fine!
I found it! There is a bug in the section of the current consumption. Check attachment.
Now it works fine!
You're right! :) bad copye and paste.
For the scheduler, I prefer to have a task running often that a task always running!
Cron is working wonderfully
You're right! :) bad copye and paste.
For the scheduler, I prefer to have a task running often that a task always running!
Cron is working wonderfully
But you can add a method to do it or a newscript to call this one recurrently !
But you can add a method to do it or a newscript to call this one recurrently !
Any example of a cron python script on server level that can be used?
This code is not using the API, right? Will that cause any performance problems for Zipato?
Any example of a cron python script on server level that can be used?
This code is not using the API, right? Will that cause any performance problems for Zipato?
I do not have any example, I learnt Python when I started to write this script! So my experience is pretty small about python, I am good to Google :)
My code is using the API but I tried to improve it to have few requests to Zipato and when the API will be available in local it will be easy to update, normally it will be only at the config file :).
I do not have any example, I learnt Python when I started to write this script! So my experience is pretty small about python, I am good to Google :)
My code is using the API but I tried to improve it to have few requests to Zipato and when the API will be available in local it will be easy to update, normally it will be only at the config file :).
FYI i set my Mac Mini to a local MAMP running my Php/Python scripts. I then use Lingon X to schedule them. Works like a sharm.
Sen.se is updated with all my meters.
I do have 1 question though, running the python script in dialog it works but upon executing it as a background task it can't find the config.ini file despite its in the same folder.
FYI i set my Mac Mini to a local MAMP running my Php/Python scripts. I then use Lingon X to schedule them. Works like a sharm.
Sen.se is updated with all my meters.
I do have 1 question though, running the python script in dialog it works but upon executing it as a background task it can't find the config.ini file despite its in the same folder.
Did you download the last version of the script?
Because the first one was calling ./config.ini and now directly config.ini. The ./ was not working with a crontab (scheduler)
Did you download the last version of the script?
Because the first one was calling ./config.ini and now directly config.ini. The ./ was not working with a crontab (scheduler)
Yes, I even tried both paths in script wo sucess... :(
Yes, I even tried both paths in script wo sucess... :(
Try to display the current path!
Try to display the current path!
And you may need to set the whole path from /
And you may need to set the whole path from /
Project Zipabox connector is nice ! I want to install it ! I downloaded file, does it exist some wiki & documentation to install it on the python server which i assume is a server inside my home which is connected to the sen.se ?
Project Zipabox connector is nice ! I want to install it ! I downloaded file, does it exist some wiki & documentation to install it on the python server which i assume is a server inside my home which is connected to the sen.se ?
Thanks! I set the default folder by using
import os
os chdir('/xxx/xxx'))
Thanks! I set the default folder by using
import os
os chdir('/xxx/xxx'))
Hi Fred,
I'm trying to follow your wiki step by step, a I'm not familiar with linux, pyhton...Where shall I install the files? I did all the steps, but when I type "./zipabox.sh" at the end, I get "-sh: /zipabox.sh : not found".
I've tried with "zipabox.sh", being in the directory where I installed the files ("volume1/homes/admin/Python" on my nas), same result... although I can see the file zipabox.sh making the DIR command in Putty.
Could you help me?
Thanks,
Philippe
Hi Fred,
I'm trying to follow your wiki step by step, a I'm not familiar with linux, pyhton...Where shall I install the files? I did all the steps, but when I type "./zipabox.sh" at the end, I get "-sh: /zipabox.sh : not found".
I've tried with "zipabox.sh", being in the directory where I installed the files ("volume1/homes/admin/Python" on my nas), same result... although I can see the file zipabox.sh making the DIR command in Putty.
Could you help me?
Thanks,
Philippe
Hi
This is not easy to help on this point
It looks like you do not have shell setup!
Try to launch thé command that is inside thé shell
Hi
This is not easy to help on this point
It looks like you do not have shell setup!
Try to launch thé command that is inside thé shell
Thanks a lot Fred, I could move a step further.
The command "pyton Zipabox.py" works in my directory "/volume1/homes/admin/Python" : data sent to Sense
I just have to figure out why the command zipabox.sh doesn't work...
Thanks a lot Fred, I could move a step further.
The command "pyton Zipabox.py" works in my directory "/volume1/homes/admin/Python" : data sent to Sense
I just have to figure out why the command zipabox.sh doesn't work...
Great, It works ! Thanks again Fred, you really did a great job !!!
Great, It works ! Thanks again Fred, you really did a great job !!!
Fred, Where is located the wiki for your project ? I didn't found link on sourceforge ?
Thanks a lot !
Fred, Where is located the wiki for your project ? I didn't found link on sourceforge ?
Thanks a lot !
Oups just found it :
http://sourceforge.net/p/zipabox-connector/wiki/Home/
Oups just found it :
http://sourceforge.net/p/zipabox-connector/wiki/Home/
Yep
Thann you
If you sant to improve it, do ont hesitate to stage
Zipato made a good API, also they implemented also graph inside thé dashboard, do ont hesitate to have a look and if necessary to ask them to have a look!
Yep
Thann you
If you sant to improve it, do ont hesitate to stage
Zipato made a good API, also they implemented also graph inside thé dashboard, do ont hesitate to have a look and if necessary to ask them to have a look!
Lol i am using a mobile :)
Do ont= do not
Stage = share
Sant = want
Lol i am using a mobile :)
Do ont= do not
Stage = share
Sant = want
Is anybody using a Synology NAS??
If yes, how do you use this python script on the NAS?
How can I get a log of what is happening when I launch the command?
Is anybody using a Synology NAS??
If yes, how do you use this python script on the NAS?
How can I get a log of what is happening when I launch the command?
Hi,
It would be nice to add "humidity" data, and if possible de "luminance". I tried, but I didn't succeed...
Hi,
It would be nice to add "humidity" data, and if possible de "luminance". I tried, but I didn't succeed...
I made it modular so it would be easy. I will may have time before thé end of thé month
I made it modular so it would be easy. I will may have time before thé end of thé month
Fred,
Just updated you project zipabox-connector for the support of up to 3 thermometers, plus the existing meters for power consumption !
this the code :
and ini file :
Fred,
Just updated you project zipabox-connector for the support of up to 3 thermometers, plus the existing meters for power consumption !
this the code :
and ini file :
Could you please send me the code as an attachment, I will do a diff and see if there is a better solution to implement that. On this thread or by the http://sourceforge.net/users/fravetier
Could you please send me the code as an attachment, I will do a diff and see if there is a better solution to implement that. On this thread or by the http://sourceforge.net/users/fravetier
I added humidity and luminance in my code, but I will publish everything with the temperature
I added humidity and luminance in my code, but I will publish everything with the temperature
many thanks and great work!
if like me you do not have a Sinology NAS, a Raspberry or another linux stuff to put and launch the zipabox conector script (i know that i am not the only one)
I have a solution !
you can use an internet service provider like alwaysdata.com (but you can find many others like this one)
It is free and provide an ftp to drop the script and a ssh to configure the crontab job !
you can now pool your sensor in 24/24 :-)
many thanks and great work!
if like me you do not have a Sinology NAS, a Raspberry or another linux stuff to put and launch the zipabox conector script (i know that i am not the only one)
I have a solution !
you can use an internet service provider like alwaysdata.com (but you can find many others like this one)
It is free and provide an ftp to drop the script and a ssh to configure the crontab job !
you can now pool your sensor in 24/24 :-)
@Olfo Great tip!
Can it also work with google drive/scripts?
@Olfo Great tip!
Can it also work with google drive/scripts?
Do sen.se only store a max number of data or why can't i analyse more then 1 day?
Do sen.se only store a max number of data or why can't i analyse more then 1 day?
It is strange because on the graph where I use 3 datas I have 2 days back displayed, on where I use only 1 data I have 4 days back on the graph.
When I look the events of a device and I ask for more, I can go back many days ago.
It is strange because on the graph where I use 3 datas I have 2 days back displayed, on where I use only 1 data I have 4 days back on the graph.
When I look the events of a device and I ask for more, I can go back many days ago.
From my experience it seems that sen.se keeps all values (I've got around 6 months of data still available exploring the feeds) BUT the graphs also seem to be limited (I would say according to the last xxxx values, which explains it's does not represent always the same duration).
From my experience it seems that sen.se keeps all values (I've got around 6 months of data still available exploring the feeds) BUT the graphs also seem to be limited (I would say according to the last xxxx values, which explains it's does not represent always the same duration).
@HeroS i'm sorry i don't know how google drive/script look's like but to do that you need to write another script in php, python or something's like this to remotely launch in google drive your script (it's going to be difficult)
i'm not sure but i think google drive dis delivering a schedulling box?
@HeroS i'm sorry i don't know how google drive/script look's like but to do that you need to write another script in php, python or something's like this to remotely launch in google drive your script (it's going to be difficult)
i'm not sure but i think google drive dis delivering a schedulling box?
Hi Olfo,
Noproblem. I looked at Google but is to complex for me. I got an account on alwaysdata.com.
Can u tell me what i need to change to get it working and how to make the cron job? Already tried something and got the script running trough the command line.
But it starts with no such file or directory (i put the files in www) and i don't see the connection to sense.
Thanks!
Hi Olfo,
Noproblem. I looked at Google but is to complex for me. I got an account on alwaysdata.com.
Can u tell me what i need to change to get it working and how to make the cron job? Already tried something and got the script running trough the command line.
But it starts with no such file or directory (i put the files in www) and i don't see the connection to sense.
Thanks!
I updated the module with HUMIDITY and LUMINANCE
I added a new module to have a virtual sensor for DAY/NIGHT depending on SUN without any external website ;).
I am still waiting for Thierry Bousquet to get the file by mail otherwise it is not easy to compare!
I updated the module with HUMIDITY and LUMINANCE
I added a new module to have a virtual sensor for DAY/NIGHT depending on SUN without any external website ;).
I am still waiting for Thierry Bousquet to get the file by mail otherwise it is not easy to compare!
regarding alwaysdata
Here the translation of my french topic :
http://www.touteladomotique.com/forum/viewtopic.php?f=122&t=12522
1/ create a free account
2/ activate SSH on control panel
3/ upload all the files (after update of config.ini) in the HOME directory using FTP (or using web FTP app : https://net2ftp.alwaysdata.com/ )
You can also upload directly .zip file. It will be unzip automaticly
4/ using SSH (putty or web : https://ssh.alwaysdata.com/anyterm.html)
- launch script using command "python ./Zipabox.py"
- you will see all the zipabox sensor ID
- download config.ini using FTP (Zipabox password is now crypted). Update zipa id = sen.se feed Id & reupload
- launch "python ./zipabox.py". Normaly you should see datas in Open.sen.se
5/ Setup Cron using SSH
- command : "crontab -e"
- command "*/15 * * * * python ./Zipabox.py" to launch script every 15 minutes. You can change it please find exemples using this link http://wikipedia.org/wiki/Crontab
- CMD + X to exit and save
Enjoy !
regarding alwaysdata
Here the translation of my french topic :
http://www.touteladomotique.com/forum/viewtopic.php?f=122&t=12522
1/ create a free account
2/ activate SSH on control panel
3/ upload all the files (after update of config.ini) in the HOME directory using FTP (or using web FTP app : https://net2ftp.alwaysdata.com/ )
You can also upload directly .zip file. It will be unzip automaticly
4/ using SSH (putty or web : https://ssh.alwaysdata.com/anyterm.html)
- launch script using command "python ./Zipabox.py"
- you will see all the zipabox sensor ID
- download config.ini using FTP (Zipabox password is now crypted). Update zipa id = sen.se feed Id & reupload
- launch "python ./zipabox.py". Normaly you should see datas in Open.sen.se
5/ Setup Cron using SSH
- command : "crontab -e"
- command "*/15 * * * * python ./Zipabox.py" to launch script every 15 minutes. You can change it please find exemples using this link http://wikipedia.org/wiki/Crontab
- CMD + X to exit and save
Enjoy !
Je teste ça ce soir!!! Merci Tony et Fred ;)
Du coup pas besoin de serveur pour héberger le script?? Il est lancé directement sur le site de alwaysdata?
Je teste ça ce soir!!! Merci Tony et Fred ;)
Du coup pas besoin de serveur pour héberger le script?? Il est lancé directement sur le site de alwaysdata?
Alwaysdata est l'hebergeur du serveur justement
Alwaysdata est l'hebergeur du serveur justement
Oui je viens de voir ça, je suis en train de lire le tout, mais je bute sur un message d'erreur:
Oui je viens de voir ça, je suis en train de lire le tout, mais je bute sur un message d'erreur:
Hi Tony thanks!
But i'm not seeing any data come in at sense but the script is running.
When i run the script is says:
INFO:Zipabox:NO FEED for Device :
Do i need to do anything else?
Hi Tony thanks!
But i'm not seeing any data come in at sense but the script is running.
When i run the script is says:
INFO:Zipabox:NO FEED for Device :
Do i need to do anything else?
J'ai tout repris...c'est bon ça fonctionne! ;)
J'ai bien mes données sur Sen.seMaintenant je vais tenter de voir voir comment lancer le script directement de mon nas...
J'ai tout repris...c'est bon ça fonctionne! ;)
J'ai bien mes données sur Sen.seMaintenant je vais tenter de voir voir comment lancer le script directement de mon nas...
Fred created a tuto for open.sen.se
But it's in french
http://frederic.ravetier-on.fr/2013/10/16/afficher-des-donnees-sous-forme-de-graphiques-avec-open-sen-se-les-objets-connectes/#axzz2lsRInVfE
You need to create device and feeds in open.sen.se
When you run the python script it will show you all the zipabox feed avalaible
edit again confi.ini after first load to put
id.feeed.zipabo = id feed open.sen
Fred created a tuto for open.sen.se
But it's in french
http://frederic.ravetier-on.fr/2013/10/16/afficher-des-donnees-sous-forme-de-graphiques-avec-open-sen-se-les-objets-connectes/#axzz2lsRInVfE
You need to create device and feeds in open.sen.se
When you run the python script it will show you all the zipabox feed avalaible
edit again confi.ini after first load to put
id.feeed.zipabo = id feed open.sen
Ahh, got it now! Super Super thanks!!
Ahh, got it now! Super Super thanks!!
Thank you, I will see what I can do
Thank you, I will see what I can do
Thierry, are you sure about your code? For me you get three times the same value!.
Can you contact me on touteladomotique (fredblabla)?
Thierry, are you sure about your code? For me you get three times the same value!.
Can you contact me on touteladomotique (fredblabla)?
No it works fine, you should have inside ini file 3 sections [Temperature], the difference between the temperature device is made by their ID. If it is your question ?
I tried using sections [TEMPERATURE1], [TEMPERATURE2], ... but it was NOK.
No it works fine, you should have inside ini file 3 sections [Temperature], the difference between the temperature device is made by their ID. If it is your question ?
I tried using sections [TEMPERATURE1], [TEMPERATURE2], ... but it was NOK.
Ok so your code is not working but you are close :)
Ok so your code is not working but you are close :)
No it works using 3 sections [TEMPERATURE] inside ini file.
No it works using 3 sections [TEMPERATURE] inside ini file.
It works for me too using alwaysdata solution...
I'm ok with it...I'll see later what I can do with my NAS.Thanks again!
It works for me too using alwaysdata solution...
I'm ok with it...I'll see later what I can do with my NAS.Thanks again!
Great, i will try to optimize using only one section temperature with 3 devices declared inside as Fred suggested.
Great, i will try to optimize using only one section temperature with 3 devices declared inside as Fred suggested.
Fred, ok using 1 section like this it works fine !
[TEMPERATURE]
35919673-c20e-4299-a862-220d841b1b96 = num_feed_id1
5b58daf26-b0f8-4e2d-bc2-52 5222b4c32 = num_feed_id2
11c222-a4af-405a-9d36-20bfd045555b55 = num_feed_id3
Fred, ok using 1 section like this it works fine !
[TEMPERATURE]
35919673-c20e-4299-a862-220d841b1b96 = num_feed_id1
5b58daf26-b0f8-4e2d-bc2-52 5222b4c32 = num_feed_id2
11c222-a4af-405a-9d36-20bfd045555b55 = num_feed_id3
I added a new functionnality:
The request to the sensor is sent only if the sensor has to be modified.
You need to update Zipabox.py and Sunsensor.py and to add something in the config.ini. If the sensor uuid is not defined, the script will list the sensors, so it is easy to add the uuid ;)
I added a new functionnality:
The request to the sensor is sent only if the sensor has to be modified.
You need to update Zipabox.py and Sunsensor.py and to add something in the config.ini. If the sensor uuid is not defined, the script will list the sensors, so it is easy to add the uuid ;)
"Le graphique de Multiviz ne montre que les dernières 1000 données dans tous
les feeds combinés parce qu'afficher des données sur des périodes plus longues
reviendrait à aller chercher des dizaines voire des centaines de milliers de
valeurs à chaque affichage de la page.
Deux façons d'afficher des données sur des périodes plus longues:
- Envoyer des données moins souvent: (quand vous voulez afficher des
graphiques sur 1 an, des fluctuations sur 5 minutes seront invisibles.
- Utiliser l'application Count Sum & Average qui va créer des
agrégations de vos donnés, par exemple en calculant une moyenne horaire,
hebdomadaire, mensuelle etc. Ensuite vous pourrez faire le graphique des
résultats de Count Sum & Average. Par exemple si vous faites une moyenne
quotidienne de vos données, vous pourrez grapher les 1000 derniers jours. "
I stopped using Sense.se, I 'm currently trying another box that directly gives me charts...
"Le graphique de Multiviz ne montre que les dernières 1000 données dans tous
les feeds combinés parce qu'afficher des données sur des périodes plus longues
reviendrait à aller chercher des dizaines voire des centaines de milliers de
valeurs à chaque affichage de la page.
Deux façons d'afficher des données sur des périodes plus longues:
- Envoyer des données moins souvent: (quand vous voulez afficher des
graphiques sur 1 an, des fluctuations sur 5 minutes seront invisibles.
- Utiliser l'application Count Sum & Average qui va créer des
agrégations de vos donnés, par exemple en calculant une moyenne horaire,
hebdomadaire, mensuelle etc. Ensuite vous pourrez faire le graphique des
résultats de Count Sum & Average. Par exemple si vous faites une moyenne
quotidienne de vos données, vous pourrez grapher les 1000 derniers jours. "
I stopped using Sense.se, I 'm currently trying another box that directly gives me charts...
I corrected a bug (new release) on my last improvements
I corrected a bug (new release) on my last improvements
@Phillip thank you for the info. What box are you using?
@Phillip thank you for the info. What box are you using?
Do you guys think this is enough graphs for 3 temp. meters :)
Do you guys think this is enough graphs for 3 temp. meters :)
Nop but it is free
Nop but it is free
Just installed zipabox connector it works fine i've now luminance and humidity tracked, for the Solar features what's for Fred ?
Just installed zipabox connector it works fine i've now luminance and humidity tracked, for the Solar features what's for Fred ?
You mean Sun feature. The goal is to have a virtual sensor that act as a SUN sensor. It is activate when the appears (in the morning for the sunrise) and inactivate at the sunset for the night.
It is cool to open or close store for examples. It does not use any external website. It is processing with an algorithm and it depends on your location, that's it.
You mean Sun feature. The goal is to have a virtual sensor that act as a SUN sensor. It is activate when the appears (in the morning for the sunrise) and inactivate at the sunset for the night.
It is cool to open or close store for examples. It does not use any external website. It is processing with an algorithm and it depends on your location, that's it.
@Fred: for the sun feature, I am using ifttt and google drive, but your script seems great too.
Is it necessary to launch it periodically with cron?
Because I get a notification when sun goes up/down, and I suppose I will get a notification every time the script is launched...
@Fred: for the sun feature, I am using ifttt and google drive, but your script seems great too.
Is it necessary to launch it periodically with cron?
Because I get a notification when sun goes up/down, and I suppose I will get a notification every time the script is launched...
@thomasfr : so you need internet to do it ;)
yes, I do it with a cron, each time you run the application, it checks the sun and update your virtual device only if necessary. I do it every 5 minutes at home and I set-up a cron only at the hours where it is possible. I wrote a tip on the sourforge for setting the cron.
When I release for the firt time this update, the notification was at every call but then I did an update to set the notification only if necessary, the app get the state of the device and toggle if necessary.
@thomasfr : so you need internet to do it ;)
yes, I do it with a cron, each time you run the application, it checks the sun and update your virtual device only if necessary. I do it every 5 minutes at home and I set-up a cron only at the hours where it is possible. I wrote a tip on the sourforge for setting the cron.
When I release for the firt time this update, the notification was at every call but then I did an update to set the notification only if necessary, the app get the state of the device and toggle if necessary.
I will try the new version
Merci pour ton aide! ;)
I will try the new version
Merci pour ton aide! ;)
Bonjour,
j'ai mis en place la relève de mes consommations. Avant de m'attaquer aux graphes, j'aimerais maintenant y adjoindre les relevés de température.
Mais je me heurte à la procédure de connexion à la zipabox à laquelle je ne comprends rien: construction du token notamment.
Quelqu'un aurait-il des exemples de scripts et programmes en python?
Merci par avance.
============================================
Hello,
I've put over my consumption. Before I address the graphs, I would now add there the temperature readings.
But I hit the login procedure to zipabox which I do not understand: construction of particular token.
Does anyone have examples of python scripts and programs?
Thank you.
Bonjour,
j'ai mis en place la relève de mes consommations. Avant de m'attaquer aux graphes, j'aimerais maintenant y adjoindre les relevés de température.
Mais je me heurte à la procédure de connexion à la zipabox à laquelle je ne comprends rien: construction du token notamment.
Quelqu'un aurait-il des exemples de scripts et programmes en python?
Merci par avance.
============================================
Hello,
I've put over my consumption. Before I address the graphs, I would now add there the temperature readings.
But I hit the login procedure to zipabox which I do not understand: construction of particular token.
Does anyone have examples of python scripts and programs?
Thank you.
Hello,
If you look at this post I did a program with python to get the temperatures and send data to sense.se.
So you can use it or download the code and see how the token is working :)
Hello,
If you look at this post I did a program with python to get the temperatures and send data to sense.se.
So you can use it or download the code and see how the token is working :)
thank you,
I had already seen, but it seemed too complicated to me because I just wanted to initialize my connection to the Zipabox. I thought I would come back later.
I will look in more detail.
Which version of Python did you use?
If I have questions, I will use sourceforge.
thank you,
I had already seen, but it seemed too complicated to me because I just wanted to initialize my connection to the Zipabox. I thought I would come back later.
I will look in more detail.
Which version of Python did you use?
If I have questions, I will use sourceforge.
Hi Fred,
I just thought it would be nice to display a histogramm chart that displays per day the CumulativeConsumption.
For exemple : Day 1=5Kw/H, Day 2=2KwH, ...
Theses infos are extracted from daily CumulativeConsumption.
Calculation is done by difference between CumulativeConsumption for :
day N+1 - day N at 0:00 each day.
I can help to do that, can you tell me how to do that ?
What could be the principle of the modification in your code ?
For sure we need to store in a variable or file, the N-1 CumulativeConsumption then once a day do the calculation ?
Any ideas are welcome :-)
Hi Fred,
I just thought it would be nice to display a histogramm chart that displays per day the CumulativeConsumption.
For exemple : Day 1=5Kw/H, Day 2=2KwH, ...
Theses infos are extracted from daily CumulativeConsumption.
Calculation is done by difference between CumulativeConsumption for :
day N+1 - day N at 0:00 each day.
I can help to do that, can you tell me how to do that ?
What could be the principle of the modification in your code ?
For sure we need to store in a variable or file, the N-1 CumulativeConsumption then once a day do the calculation ?
Any ideas are welcome :-)
Hello Thierry,
It is funny because these last days I was trying to find a solution to do that.
I wanted to get some graphs like the one I got from the energy provider, that are nice. But at this time we got some useless graphs, as the one from the zipabox about consumption (not the one about temperature).
I had a look to the events but I do not understand how it works!.
I posted a message on our french forum :
http://www.touteladomotique.com/forum/viewtopic.php?f=115&t=12783
At this time my progam is working to get data every xx minutes. But I do not think that this strategy is good for doing that. But I do not know which one is good. May be to retrieve events from the box...
If you have an idea to get the real datas.
Do you think that every event is a cumulative consumption and that after each events it start to 0 ?!
Then we will find an algorythm...
Hello Thierry,
It is funny because these last days I was trying to find a solution to do that.
I wanted to get some graphs like the one I got from the energy provider, that are nice. But at this time we got some useless graphs, as the one from the zipabox about consumption (not the one about temperature).
I had a look to the events but I do not understand how it works!.
I posted a message on our french forum :
http://www.touteladomotique.com/forum/viewtopic.php?f=115&t=12783
At this time my progam is working to get data every xx minutes. But I do not think that this strategy is good for doing that. But I do not know which one is good. May be to retrieve events from the box...
If you have an idea to get the real datas.
Do you think that every event is a cumulative consumption and that after each events it start to 0 ?!
Then we will find an algorythm...
This is a guide on eedomus for what you are looking to do with zipabox, maybe it can help:
http://forum.eedomus.com/viewtopic.php?f=12&t=1340
This is a guide on eedomus for what you are looking to do with zipabox, maybe it can help:
http://forum.eedomus.com/viewtopic.php?f=12&t=1340
Your link is interesting but it does not explain how to get the values about consumption correctly
I need to understand how it works
Your link is interesting but it does not explain how to get the values about consumption correctly
I need to understand how it works
Thierry's hint:
(cumulate consumption dayN-1) - (cumulate consumption dayN) = consumption of the day
could do the trick, doesn't it?
Thierry's hint:
(cumulate consumption dayN-1) - (cumulate consumption dayN) = consumption of the day
could do the trick, doesn't it?
But how do you get these values from the zipabox?
Have a look to the screenshot I've done. The value are not per day. The device don't know the time.
I haven't took enough time on the Api and the events.
But how do you get these values from the zipabox?
Have a look to the screenshot I've done. The value are not per day. The device don't know the time.
I haven't took enough time on the Api and the events.
I really cannot help you on that one ;(
I really cannot help you on that one ;(
Definitely :
cumulate consumption dayN-1) - (cumulate consumption dayN) = consumption of the day
could do the trick, what we can do it's the following :
1. Duplicate instance of my zipabox let's call it Zipabox_Day
This instance has only one feed_id which takes Cumulative_Consumption.
It stores value in one file let's say power_cons_day.txt
2. Add a new cron that launch this new instance each day at 0:00
3. We can have now a bar graph in sense that display evolution of cumulative power consumption per day
If we modify instance : Zipabox_Day to do that : at start_up load value of last cumulative_power_consumption and store in a variable, then get new value, then calculate difference, then send this value we could have the power consumption per day :-)
I already tested to duplicate instance and it works, now i think we have to manage the generation of the file that countains the power consumption and so on ?
Fred : what do you think about it ?
Definitely :
cumulate consumption dayN-1) - (cumulate consumption dayN) = consumption of the day
could do the trick, what we can do it's the following :
1. Duplicate instance of my zipabox let's call it Zipabox_Day
This instance has only one feed_id which takes Cumulative_Consumption.
It stores value in one file let's say power_cons_day.txt
2. Add a new cron that launch this new instance each day at 0:00
3. We can have now a bar graph in sense that display evolution of cumulative power consumption per day
If we modify instance : Zipabox_Day to do that : at start_up load value of last cumulative_power_consumption and store in a variable, then get new value, then calculate difference, then send this value we could have the power consumption per day :-)
I already tested to duplicate instance and it works, now i think we have to manage the generation of the file that countains the power consumption and so on ?
Fred : what do you think about it ?
Answer to Fred for :
"But how do you get these values from the zipabox?
Have a look to the screenshot I've done. The value are not per day. The device don't know the time."
=> we need to Get one time per day the cumulative consumption (see my previous post)
=> this is not Zipato that generates the cumulation this is the meter itself and we can get it with your nice software !
also you sayed :
"Do you think that every event is a cumulative consumption and that after each events it start to 0 ?!"
=> every event is a cumulative consumption not starting 0 and in between each event meter sum the real time value : it's a counter of energy like your EDF counter. That's why doing the difference between cumulative power consumption between N Times gives the total consumption for N times.
Answer to Fred for :
"But how do you get these values from the zipabox?
Have a look to the screenshot I've done. The value are not per day. The device don't know the time."
=> we need to Get one time per day the cumulative consumption (see my previous post)
=> this is not Zipato that generates the cumulation this is the meter itself and we can get it with your nice software !
also you sayed :
"Do you think that every event is a cumulative consumption and that after each events it start to 0 ?!"
=> every event is a cumulative consumption not starting 0 and in between each event meter sum the real time value : it's a counter of energy like your EDF counter. That's why doing the difference between cumulative power consumption between N Times gives the total consumption for N times.
I think you are missing some data
Have a look to the events on my screenshot
http://imageshack.com/a/img69/8277/y540.jpg
It starts back to zero! At a random time or when it is turn off. Or I missed something!
I think you are missing some data
Have a look to the events on my screenshot
http://imageshack.com/a/img69/8277/y540.jpg
It starts back to zero! At a random time or when it is turn off. Or I missed something!
I think that's depend on your meter, my meter : Aeon Home Energy Meter DSB09104 is always increasing like my EDF counter ! Even if i change battery or if i power off it restart from last previous value then count count ... What is your meter ?
I think that's depend on your meter, my meter : Aeon Home Energy Meter DSB09104 is always increasing like my EDF counter ! Even if i change battery or if i power off it restart from last previous value then count count ... What is your meter ?
Most of my radiators are using "Aeon micro SES G2". and I have one G1.
And I do not understand how it works.
Actually a meter like your would be easier to follow and you're idea is good. A database would be better. But did you try with sens.se because they give you some applications to combine and do some process on data.
Most of my radiators are using "Aeon micro SES G2". and I have one G1.
And I do not understand how it works.
Actually a meter like your would be easier to follow and you're idea is good. A database would be better. But did you try with sens.se because they give you some applications to combine and do some process on data.
Yes i searched but didn't found it, may be I can ask their support because now I have only 1 value per day of cumulative consumption becausse of the 2 instance Zipabox the only things which is missing is to do the difference.
Yes i searched but didn't found it, may be I can ask their support because now I have only 1 value per day of cumulative consumption becausse of the 2 instance Zipabox the only things which is missing is to do the difference.
So I had a look to the events (see my screenshot on the french forum).
The events occurs every 12 minutes (720 seconds) and it starts from ON.
I wrote to Aeon to have more informations.
Have a look to the app on Sen.se called "Count, Sum, Average" and try "the variation from the previous value".
It can't work for me because I would need to get the value exactly when the device send it.
So I had a look to the events (see my screenshot on the french forum).
The events occurs every 12 minutes (720 seconds) and it starts from ON.
I wrote to Aeon to have more informations.
Have a look to the app on Sen.se called "Count, Sum, Average" and try "the variation from the previous value".
It can't work for me because I would need to get the value exactly when the device send it.
I post a message on this forum to get the events from the API:
http://community.zipato.com/responses/how-to-get-the-events-from-the-api
I post a message on this forum to get the events from the API:
http://community.zipato.com/responses/how-to-get-the-events-from-the-api
>Have a look to the app on Sen.se called "Count, Sum, Average" and try "the > >variation from the previous value".
but how can you build a histogram graph as requested ?
>Have a look to the app on Sen.se called "Count, Sum, Average" and try "the > >variation from the previous value".
but how can you build a histogram graph as requested ?
I know, I tried since my device are giving a real cumulative consumption, but it does not work!
The only solution is to have something good on zipabox or to have a database as suggested before. Which means having time to make it, which is not my case for now.
I know, I tried since my device are giving a real cumulative consumption, but it does not work!
The only solution is to have something good on zipabox or to have a database as suggested before. Which means having time to make it, which is not my case for now.
I've got it !
I duplicated instance of my Zipabox.
Now a new instance of my zipabox publish cumulative consumption one time per day at 0:00.
Then i'm able (as you suggested) to get by the variation information requested using appi sum, average,variation. Then i'm able to build a graph that show difference of power consumption per day. Also i'm able to calculate in euro how much i consume per day using expressive signs. I will publish later some capture screen once i will have more datas retrieved and that show on screen theses features.
I've got it !
I duplicated instance of my Zipabox.
Now a new instance of my zipabox publish cumulative consumption one time per day at 0:00.
Then i'm able (as you suggested) to get by the variation information requested using appi sum, average,variation. Then i'm able to build a graph that show difference of power consumption per day. Also i'm able to calculate in euro how much i consume per day using expressive signs. I will publish later some capture screen once i will have more datas retrieved and that show on screen theses features.
Great & welld one thierry!
Why the behavior is different when duplicating the instance?
How have you done that?
And in a general matter, what's the goal of have a second instance?
Regards
Fred
Great & welld one thierry!
Why the behavior is different when duplicating the instance?
How have you done that?
And in a general matter, what's the goal of have a second instance?
Regards
Fred
With the first instance of Zipabox, i send datas every 15 minutes because i send also Temp, humidity, etc... Then if i use application sum, average, variation to calculate variation of cumulative consumption i will have variation of cumulative consumption versus previous value 15 minutes ago. This is not what i want ! I want variation for day. That's why i duplicated Zipabox to create an instance that publish every 24 hour only cumulative consumption. Then i can calculate variation for 24 hours datas. I hope i'm clear.
To duplicate the instance, i copied in an other directory the original Zipabox file directory, then modified config.ini and let only cumulative consumption to be sent.I also created a new arduino object in open.se. Then i created a cron that run every 24 hour at @0:00. And it's done.
With the first instance of Zipabox, i send datas every 15 minutes because i send also Temp, humidity, etc... Then if i use application sum, average, variation to calculate variation of cumulative consumption i will have variation of cumulative consumption versus previous value 15 minutes ago. This is not what i want ! I want variation for day. That's why i duplicated Zipabox to create an instance that publish every 24 hour only cumulative consumption. Then i can calculate variation for 24 hours datas. I hope i'm clear.
To duplicate the instance, i copied in an other directory the original Zipabox file directory, then modified config.ini and let only cumulative consumption to be sent.I also created a new arduino object in open.se. Then i created a cron that run every 24 hour at @0:00. And it's done.
ok :)
I though it was on the zipabox.
You created an new instance of the python script :). That was a good idea.
ok :)
I though it was on the zipabox.
You created an new instance of the python script :). That was a good idea.
Also the script can bu updated to take some parameters to choose what to send. So then it is just the right command to call in the crontab!
Also the script can bu updated to take some parameters to choose what to send. So then it is just the right command to call in the crontab!
>Also the script can bu updated to take some parameters to choose what to send.
Please explain what do you mean ?
>Also the script can bu updated to take some parameters to choose what to send.
Please explain what do you mean ?
I mean that it requires some lines of codes but it would be nice to call the script like :
./zipabox.sh CUMULATIVE_CONSUMPTION and then it process only the cumulative consumption...
I will try to find some time to do it!
I mean that it requires some lines of codes but it would be nice to call the script like :
./zipabox.sh CUMULATIVE_CONSUMPTION and then it process only the cumulative consumption...
I will try to find some time to do it!
It is done, Have a look to the doc : https://sourceforge.net/p/zipabox-connector/wiki/Home/
Download the zip, extract and replace the zipabox.py.
Then you can have a look to the shell zipaboxCumulative...sh it gives you an example. You can add one line in your crontab to run the script every day on cumulative consumption.
It is done, Have a look to the doc : https://sourceforge.net/p/zipabox-connector/wiki/Home/
Download the zip, extract and replace the zipabox.py.
Then you can have a look to the shell zipaboxCumulative...sh it gives you an example. You can add one line in your crontab to run the script every day on cumulative consumption.
I'll try this new update!! Great ;)
I suppose we have to add a new sensor in sen.se too?
What is the command in crontab?
this one does not work:
0 0 * * * python ./ZipaboxCumulativeConsumption.sh
I'll try this new update!! Great ;)
I suppose we have to add a new sensor in sen.se too?
What is the command in crontab?
this one does not work:
0 0 * * * python ./ZipaboxCumulativeConsumption.sh
So it worked? I had to remove on sense the first value sent because it was to big compare to the diff every day and the graph had a first data big and then it looked like the next values were null (0).
Do
0 0 * * * /home/..../ZipaboxCumulativeConsumption.sh
Replace the .... by the path
So it worked? I had to remove on sense the first value sent because it was to big compare to the diff every day and the graph had a first data big and then it looked like the next values were null (0).
Do
0 0 * * * /home/..../ZipaboxCumulativeConsumption.sh
Replace the .... by the path
I just realized I was using python command but it is not a python script...am I right?
That's a stupid error from me ;)
I'm really new with that kind of stuff.
So I have to create one sense graph for cumulativeconsumption of one of my plugs (and ad it's uuid in config.ini), then create another sense graph for the ZipaboxCumulativeConsumption.sh script, that's it?
I'll give it a try this we, thanks
I just realized I was using python command but it is not a python script...am I right?
That's a stupid error from me ;)
I'm really new with that kind of stuff.
So I have to create one sense graph for cumulativeconsumption of one of my plugs (and ad it's uuid in config.ini), then create another sense graph for the ZipaboxCumulativeConsumption.sh script, that's it?
I'll give it a try this we, thanks
Hello, this is a capture screen of cumulative consumption generated with 2 instances of Zipabox. That's great you modified to have it running in one instance, i will try to use it !
ps : that's a pity i do not receive any notifications for new post message in this feed even if i subscribed so i didn't read you since 1 week ...
Hello, this is a capture screen of cumulative consumption generated with 2 instances of Zipabox. That's great you modified to have it running in one instance, i will try to use it !
ps : that's a pity i do not receive any notifications for new post message in this feed even if i subscribed so i didn't read you since 1 week ...
and impossible to publish a capture screen even if it is a jpeg < 2MO ... :-(
and impossible to publish a capture screen even if it is a jpeg < 2MO ... :-(
Hi Fred,
It is really an amazing work. I am currently converting your python code to Google Script (I don't have a NAS...) and it is working pretty well :)
I hope I will be able to show the sources once it will be completed if someone is interested.
Hi Fred,
It is really an amazing work. I am currently converting your python code to Google Script (I don't have a NAS...) and it is working pretty well :)
I hope I will be able to show the sources once it will be completed if someone is interested.
Yeah GREAT ...me want me want :)
Yeah GREAT ...me want me want :)
Thank you. If you want to publish your code on this sourceforge, you are welcome, I can give you an access to write.
Thank you. If you want to publish your code on this sourceforge, you are welcome, I can give you an access to write.
Google Script, I am interested.
Google Script, I am interested.
I didn't know so many people will be interested :)
The code is not complete yet and I only have a temperature meter so I am only be able to test this feature...
I'm doing it during my free time so I will try to release something as soon as possible.
I didn't know so many people will be interested :)
The code is not complete yet and I only have a temperature meter so I am only be able to test this feature...
I'm doing it during my free time so I will try to release something as soon as possible.
As promised, I released a google script version of the connector.
I hope you will be able to use it as it was made first for my own needs. It is also my first time using google script :)
https://docs.google.com/spreadsheets/d/1iaMnRGPozVS3QaXkUDiwacR-g_7CS4xLsEsy-ew65aA/edit?usp=sharing
You can also use the "Zipabox menu" on the spreadsheet. First launch "Prepare all data for sense" and then launch "Send feeds to sense".
Please don't hesitate to modify the code and share it with other zipabox users !
As promised, I released a google script version of the connector.
I hope you will be able to use it as it was made first for my own needs. It is also my first time using google script :)
https://docs.google.com/spreadsheets/d/1iaMnRGPozVS3QaXkUDiwacR-g_7CS4xLsEsy-ew65aA/edit?usp=sharing
You can also use the "Zipabox menu" on the spreadsheet. First launch "Prepare all data for sense" and then launch "Send feeds to sense".
Please don't hesitate to modify the code and share it with other zipabox users !
Great Great Great! Going to give it a spin asp.
Great Great Great! Going to give it a spin asp.
You will see, values are also stored in the spreadsheet (a sheet is automatically created for each device before sending feeds to sense) so you can use them to make your own charts :)
You will see, values are also stored in the spreadsheet (a sheet is automatically created for each device before sending feeds to sense) so you can use them to make your own charts :)
Ok great! done some testing...
But not working :( Getting this error:
TypeError: Cannot call method "getLastRow" of null.
Line: 67
Ok great! done some testing...
But not working :( Getting this error:
TypeError: Cannot call method "getLastRow" of null.
Line: 67
Oh I see, you have to add a value in project properties (see screenshot) :
File -> Project properties -> Project properties
name : "paramSheet"
value : "Paramètres" => it is the tab name of params data
I just added it in the spreadsheet so you can copy it again if you need to.
Oh I see, you have to add a value in project properties (see screenshot) :
File -> Project properties -> Project properties
name : "paramSheet"
value : "Paramètres" => it is the tab name of params data
I just added it in the spreadsheet so you can copy it again if you need to.
Your the best!
Values are coming in. I have put a trigger on it for more testing.
Thanks again.
Your the best!
Values are coming in. I have put a trigger on it for more testing.
Thanks again.
I will add a few improvements very soon (like a RSS flow or other things I don't know yet...)
I will add a few improvements very soon (like a RSS flow or other things I don't know yet...)
I was celebrating a bit to fast. It only runs sometimes and not all UUID end points work. I see the UUID in the log.
I'm getting this error:
Trop d'appels effectués en peu de temps pour ce service : properties. Essayez Utilities.sleep(1000) entre les
And this one:
Your input contains more than the maximum of 50000 characters in a single cell.
Can not get my finger on it what the problem is. Going to do more testing and get back to you.
I was celebrating a bit to fast. It only runs sometimes and not all UUID end points work. I see the UUID in the log.
I'm getting this error:
Trop d'appels effectués en peu de temps pour ce service : properties. Essayez Utilities.sleep(1000) entre les
And this one:
Your input contains more than the maximum of 50000 characters in a single cell.
Can not get my finger on it what the problem is. Going to do more testing and get back to you.
The log file should be too big to fit in a single cell of the spreadsheet (you should have a lot of devices!), I will disable logging in the spreadsheet for now (it will still be available in the script editor).
About the properties error I didn't know calls to to PropertiesServices were limited (it seems like your cron is executing the script very often!). I will try to correct this point tonight.
The log file should be too big to fit in a single cell of the spreadsheet (you should have a lot of devices!), I will disable logging in the spreadsheet for now (it will still be available in the script editor).
About the properties error I didn't know calls to to PropertiesServices were limited (it seems like your cron is executing the script very often!). I will try to correct this point tonight.
Oke great.
I have 82 end points. But it is strange that is runs sometimes and when i count the char. It is "only" 43500.
I put the trigger to run every 5 min.
Oke great.
I have 82 end points. But it is strange that is runs sometimes and when i count the char. It is "only" 43500.
I put the trigger to run every 5 min.
I updated the spreadsheet so everything should be OK now.
You can copy it again to test.
Maybe you could raise issues in my new github page so it will be much easier to follow:
https://github.com/ntrinh/zipabox-gs-connector
I updated the spreadsheet so everything should be OK now.
You can copy it again to test.
Maybe you could raise issues in my new github page so it will be much easier to follow:
https://github.com/ntrinh/zipabox-gs-connector
Sorry for my low level in coding, but could you add a step by step tutorial on your github please? ;)
I did a copy of your zipabox gs connector, but I get a spreadsheet (like excel).
I modified parameters.
Add "paramSheet" and "Paramètres" (in script editor)
The script is executed when preparing all datas, but then nothing is received in sense when I click send datas to sense
Also there is no data in Door/Sensor logs
Which script do I need to schedule?
Thanks for your hard work (Merci!)
Sorry for my low level in coding, but could you add a step by step tutorial on your github please? ;)
I did a copy of your zipabox gs connector, but I get a spreadsheet (like excel).
I modified parameters.
Add "paramSheet" and "Paramètres" (in script editor)
The script is executed when preparing all datas, but then nothing is received in sense when I click send datas to sense
Also there is no data in Door/Sensor logs
Which script do I need to schedule?
Thanks for your hard work (Merci!)
Did you rename the tabs of the spreadsheet? (make sure the names match)
And also check the log (see script editor) and try running the "main" from the script editor (not from the spreadsheet).
Did you rename the tabs of the spreadsheet? (make sure the names match)
And also check the log (see script editor) and try running the "main" from the script editor (not from the spreadsheet).
HeroS is right, the best way now is to go in the script editor and to run the "main" function. I only have a door sensor and a temperature meter so I cannot test every devices. That is why I appreciate your help for testing :)
Don't forget that the parameters "paramSheet" has to be put in the "project properties" tab and not in the "user properties tab".
HeroS is right, the best way now is to go in the script editor and to run the "main" function. I only have a door sensor and a temperature meter so I cannot test every devices. That is why I appreciate your help for testing :)
Don't forget that the parameters "paramSheet" has to be put in the "project properties" tab and not in the "user properties tab".
HeroS is right, the best way now is to go in the script editor and to run the "main" function. I only have a door sensor and a temperature meter so I cannot test every devices. That is why I appreciate your help for testing :)
Don't forget that the parameters "paramSheet" has to be put in the "project properties" tab and not in the "user properties tab".
HeroS is right, the best way now is to go in the script editor and to run the "main" function. I only have a door sensor and a temperature meter so I cannot test every devices. That is why I appreciate your help for testing :)
Don't forget that the parameters "paramSheet" has to be put in the "project properties" tab and not in the "user properties tab".
Ok I get the values, but not the good ones ;)
For example, with my aeon multisensor, I get a MOTION/NO MOTION data, not temperature
For my temp/humidity sensor, I get the humidity number
I checked the uuids and they seem good (the same used with my config with alwaysdata)
Ok I get the values, but not the good ones ;)
For example, with my aeon multisensor, I get a MOTION/NO MOTION data, not temperature
For my temp/humidity sensor, I get the humidity number
I checked the uuids and they seem good (the same used with my config with alwaysdata)
ThomasFR > Check here: https://github.com/ntrinh/zipabox-gs-connector/issues/1
ThomasFR > Check here: https://github.com/ntrinh/zipabox-gs-connector/issues/1
Please use endpoint UUID and not device UUID. It is explained in the link given by HeroS :)
Please use endpoint UUID and not device UUID. It is explained in the link given by HeroS :)
Sadly for the aeon multisensor and the temp/humidity sensor, I have only one function/endpoint in parameters.
In the log of the script, I clearly see 4 different endpoints for the multisensor (luminance/temperature/humidity/motion), but even if I use these uuids, I always get the MOTION/NO MOTION data ;(
Sadly for the aeon multisensor and the temp/humidity sensor, I have only one function/endpoint in parameters.
In the log of the script, I clearly see 4 different endpoints for the multisensor (luminance/temperature/humidity/motion), but even if I use these uuids, I always get the MOTION/NO MOTION data ;(
@Thomasfr >> Nicolas is working on this problem right now. Please post at:
https://github.com/ntrinh/zipabox-gs-connector/
@Thomasfr >> Nicolas is working on this problem right now. Please post at:
https://github.com/ntrinh/zipabox-gs-connector/
I'll keep following the github as it is the same problem that you posted there ;)
Thanks HeroS
I'll keep following the github as it is the same problem that you posted there ;)
Thanks HeroS
Hi,
Since One day Zipabox connector on my Raspberry does not work with following error. Please note i changed nothing in my configuration but had this problem
of certificate error. Any idea of the problem ?
pi@gateway ~/Zipabox $ ./zipabox.sh
INFO:Zipabox:Starting Processus...
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): my.zipato.com
Traceback (most recent call last):
File "Zipabox.py", line 379, in <module>
zipabox.processMetersToSense()
File "Zipabox.py", line 366, in processMetersToSense
data = self.initLoginZipato()
File "Zipabox.py", line 108, in initLoginZipato
response = self.session.get(self.uriZipato+path)
File "/home/pi/Zipabox/requests/sessions.py", line 369, in get
return self.request('GET', url, **kwargs)
File "/home/pi/Zipabox/requests/sessions.py", line 357, in request
resp = self.send(prep, **send_kwargs)
File "/home/pi/Zipabox/requests/sessions.py", line 460, in send
r = adapter.send(request, **kwargs)
File "/home/pi/Zipabox/requests/adapters.py", line 362, in send
raise SSLError(e)
requests.exceptions.SSLError: [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
pi@gateway ~
Hi,
Since One day Zipabox connector on my Raspberry does not work with following error. Please note i changed nothing in my configuration but had this problem
of certificate error. Any idea of the problem ?
pi@gateway ~/Zipabox $ ./zipabox.sh
INFO:Zipabox:Starting Processus...
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): my.zipato.com
Traceback (most recent call last):
File "Zipabox.py", line 379, in <module>
zipabox.processMetersToSense()
File "Zipabox.py", line 366, in processMetersToSense
data = self.initLoginZipato()
File "Zipabox.py", line 108, in initLoginZipato
response = self.session.get(self.uriZipato+path)
File "/home/pi/Zipabox/requests/sessions.py", line 369, in get
return self.request('GET', url, **kwargs)
File "/home/pi/Zipabox/requests/sessions.py", line 357, in request
resp = self.send(prep, **send_kwargs)
File "/home/pi/Zipabox/requests/sessions.py", line 460, in send
r = adapter.send(request, **kwargs)
File "/home/pi/Zipabox/requests/adapters.py", line 362, in send
raise SSLError(e)
requests.exceptions.SSLError: [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
pi@gateway ~
Just solved the problem. It was due to the release of Python i had 2.7.3, seems the certificate embedded on it was obsolete. I had to update to latest release of python : 3.4 but i had to modify Zipabox.py to be compliant with latest release python because
library configparser.py was modified since release 3 of python.
Just solved the problem. It was due to the release of Python i had 2.7.3, seems the certificate embedded on it was obsolete. I had to update to latest release of python : 3.4 but i had to modify Zipabox.py to be compliant with latest release python because
library configparser.py was modified since release 3 of python.
Just solved the problem. It was due to the release of Python i had 2.7.3, seems the certificate embedded on it was obsolete. I had to update to latest release of python : 3.4 but i had to modify Zipabox.py to be compliant with latest release python because
library configparser.py was modified since release 3 of python.
Just solved the problem. It was due to the release of Python i had 2.7.3, seems the certificate embedded on it was obsolete. I had to update to latest release of python : 3.4 but i had to modify Zipabox.py to be compliant with latest release python because
library configparser.py was modified since release 3 of python.
What did you modify to make it work ?
Thanks Thierry
What did you modify to make it work ?
Thanks Thierry
Hello
You can also modify the sessions.py files in requests.
The line to modify is :
#: SSL Verification default.
self.verify = True
#: SSL Verification default.
self.verify = False
This bypass the check SSL check.
Hello
You can also modify the sessions.py files in requests.
The line to modify is :
#: SSL Verification default.
self.verify = True
#: SSL Verification default.
self.verify = False
This bypass the check SSL check.
Great work, it works fantastic!
For the new people like me trying to integrate zipabox and open.sen.se on first time I can share a simple guide:
On config.ini the feed id attributte must be found on open.sen.se:
Add Channel -> Custom Channel -> Create your Zipabox Channel, then add a Feed and when you create it go the the new Feed description and inside you must see the Feed ID than have to be configured on config.ini.
Great work, it works fantastic!
For the new people like me trying to integrate zipabox and open.sen.se on first time I can share a simple guide:
On config.ini the feed id attributte must be found on open.sen.se:
Add Channel -> Custom Channel -> Create your Zipabox Channel, then add a Feed and when you create it go the the new Feed description and inside you must see the Feed ID than have to be configured on config.ini.
I added a step by step guide for Zipabox GS in French on my blog (just started!):
http://nicolas.trinh.fr/blog/
I added a step by step guide for Zipabox GS in French on my blog (just started!):
http://nicolas.trinh.fr/blog/
-- deleted --
-- deleted --
And the dutch version:
http://www.domotica-blog.nl/post/Zipabox-devices-verbinden-met-google-Drive
Thanks again Nicolas!
And the dutch version:
http://www.domotica-blog.nl/post/Zipabox-devices-verbinden-met-google-Drive
Thanks again Nicolas!
Thanks again! ;)
Thanks again! ;)
I can't unfortunately not send them to sen.se is it because I receive the error message?
---
Détails du messageTypeError: Fonction getValues introuvable dans l'objet false.
---
Thanks for your help and your superb work.
Michael
I can't unfortunately not send them to sen.se is it because I receive the error message?
---
Détails du messageTypeError: Fonction getValues introuvable dans l'objet false.
---
Thanks for your help and your superb work.
Michael
But now I receive another error :
---
Détails du message
Échec de la requête pour http://api.sen.se/events/?sense_key=(myapikey). Code renvoyé : 400. Réponse tronquée du serveur : Key 'feed_id' of JSON dictionary must be valid int.
---
I've checked the url with the url available in the api documentation of my account and it seems correct.
Another giant idea?
But now I receive another error :
---
Détails du message
Échec de la requête pour http://api.sen.se/events/?sense_key=(myapikey). Code renvoyé : 400. Réponse tronquée du serveur : Key 'feed_id' of JSON dictionary must be valid int.
---
I've checked the url with the url available in the api documentation of my account and it seems correct.
Another giant idea?
Can you execute the "main" function in the script editor and then send me the logs?
My temporary email address: setjw@advantimo.com
Can you execute the "main" function in the script editor and then send me the logs?
My temporary email address: setjw@advantimo.com
Sorry, nothing received :(
Can you try to send it again?
Sorry, nothing received :(
Can you try to send it again?
If not received, it is maybe in your spam?
Cheers
If not received, it is maybe in your spam?
Cheers
Hi,
Could someone help me to get an sen.se account ?
I'd like to test these charts.
Thanks
Hi,
Could someone help me to get an sen.se account ?
I'd like to test these charts.
Thanks
If you send me your mail, i can invite you on SenSe.
If you send me your mail, i can invite you on SenSe.
Thanks a lot, that would be great !!
my mail is sguyomard@cegetel.net
Thanks a lot.
Thanks a lot, that would be great !!
my mail is sguyomard@cegetel.net
Thanks a lot.
Done (fait) moi aussi j'ai encore un mail en cegetel. je crois qu'on est plus que deux.
Done (fait) moi aussi j'ai encore un mail en cegetel. je crois qu'on est plus que deux.
Hello,
can some one invite me to the SenSe... pleas :)
larsoudenijhuis @ gmail com
thanks...
Hello,
can some one invite me to the SenSe... pleas :)
larsoudenijhuis @ gmail com
thanks...
Done again.
Enjoy
Done again.
Enjoy
I have my solarcollector for hot water and boiler connected to the zipato
thanks !
I have my solarcollector for hot water and boiler connected to the zipato
thanks !
Hi,
I sent a request to sen.se 4 weeks ago. Do you know how many time i have to wait more ?
Thanks
Hi,
I sent a request to sen.se 4 weeks ago. Do you know how many time i have to wait more ?
Thanks
thank you very much in advance
jcjc83820@gmail.com
thank you very much in advance
jcjc83820@gmail.com
it works fine, thank you
it works fine, thank you
Interested in a sen.se invitation also if anyone has one to spare.
sense@frisen.net
Interested in a sen.se invitation also if anyone has one to spare.
sense@frisen.net
Thanks for the hard work everyone, and a special thanks to Nicolas
Have aplied to sen.se so hopfully i will get in with time. If anyone have a extra invitation i would be thankfull
//nicklas
Thanks for the hard work everyone, and a special thanks to Nicolas
Have aplied to sen.se so hopfully i will get in with time. If anyone have a extra invitation i would be thankfull
//nicklas
If anyone have any sen.se invitations to spare, I'm interested.
erikarnewing@gmail.com
Thanks,
Erik
If anyone have any sen.se invitations to spare, I'm interested.
erikarnewing@gmail.com
Thanks,
Erik
Have anyone still working G-sheet script from Nicolas? My has been non-functional for a long time. First I thought, that it is due the password change, but there is something else. I can't get new copy of it working either. It does not find any endpoint from api... Something changed there?
There was been many error reports, e.g. "Le service Spreadsheets a expiré." ?
Have anyone still working G-sheet script from Nicolas? My has been non-functional for a long time. First I thought, that it is due the password change, but there is something else. I can't get new copy of it working either. It does not find any endpoint from api... Something changed there?
There was been many error reports, e.g. "Le service Spreadsheets a expiré." ?
Yup, is working fine. Only there is a max. on the data/rows/sheets.
Yup, is working fine. Only there is a max. on the data/rows/sheets.
It was password issue anyhow. Seems, that initial password can not be changed afterwards.
It was password issue anyhow. Seems, that initial password can not be changed afterwards.
When you change your password, you have to change it also in the spreadsheet file.
The script will automatically encrypt it to SHA1 at the first connection.
When you change your password, you have to change it also in the spreadsheet file.
The script will automatically encrypt it to SHA1 at the first connection.
I changed the password also in spreadsheet, but it didn't help. The encrypted value was different, yes. But still no. When I went back to my previous password in Zipabox, then it connecting right away with initial password.
I changed the password also in spreadsheet, but it didn't help. The encrypted value was different, yes. But still no. When I went back to my previous password in Zipabox, then it connecting right away with initial password.
It is a strange behavior... maybe it is a zipabox API problem. Since the script is using the old API, I am not sure they are going to correct it.
It is a strange behavior... maybe it is a zipabox API problem. Since the script is using the old API, I am not sure they are going to correct it.
It sometimes helps by removing your password, saving it (close it) then readd your password in the sheet. Also make sure you haven't accidentially added an enter/return (that was my mistake).
If anyone have any sen.se invitations to spare, I'm interested. I've applied several weeks ago but i haven't gotten a reply from them. I'd like to see what i can come up with by connecting my zipabox to opensense.
nicky.bulthuis@gmail.com
Thanks
It sometimes helps by removing your password, saving it (close it) then readd your password in the sheet. Also make sure you haven't accidentially added an enter/return (that was my mistake).
If anyone have any sen.se invitations to spare, I'm interested. I've applied several weeks ago but i haven't gotten a reply from them. I'd like to see what i can come up with by connecting my zipabox to opensense.
nicky.bulthuis@gmail.com
Thanks
Done
Done
If anyone have any sen.se invitations to spare, I'm interested. :) Got all other working (with google). But i think Zipato is lacking a lot of features compared to Fibaro (Charts, Sonos, Plugins, and some topics is +2years and no solutions) - on the hardware side, Zipato wins with battery backup, and extensions. I hope to see a LOAD/Tons more soon, as my Ras P with Domoticz can to about the same just as easy as Zipato right now, it even has Homekit support now - so Sire can turn on lamps etc. (Get us Sonos and TTL - so i is worth to buy in version 1.0 - right now its 59$, to turn volume up and down. Is the hardware specs of the Zipato to low for google TTS? 208 Mhz vs VERA EDGE 600Mhz with 128 mb ram. But still love the cloud part of Zipato and im here just a little time more to see if more features are comming. :)
If anyone have any sen.se invitations to spare, I'm interested. :) Got all other working (with google). But i think Zipato is lacking a lot of features compared to Fibaro (Charts, Sonos, Plugins, and some topics is +2years and no solutions) - on the hardware side, Zipato wins with battery backup, and extensions. I hope to see a LOAD/Tons more soon, as my Ras P with Domoticz can to about the same just as easy as Zipato right now, it even has Homekit support now - so Sire can turn on lamps etc. (Get us Sonos and TTL - so i is worth to buy in version 1.0 - right now its 59$, to turn volume up and down. Is the hardware specs of the Zipato to low for google TTS? 208 Mhz vs VERA EDGE 600Mhz with 128 mb ram. But still love the cloud part of Zipato and im here just a little time more to see if more features are comming. :)
Replies have been locked on this page!