- Joined
- Apr 9, 2020
- Messages
- 147
- Reaction score
- 71
Finally got to write up and share with the community what I did with my iSpindel.
First of all my motivation - I may just be a privacy freak (this is what my children think) but I'm not happy with all "free services" leeching private data. Many people would think it's not a big deal but for me it's a matter of principal.
So after I got an iSpindel for my birthday, I began exploring its capabilities and how it operates. Basically, what iSpindel does is to send a http request to a preset URL. I guess the format of the data sent along may be a bit different depending on which app is selected in the settings. I went with the universal HTTP interface which as far as could get from the German documentation sends the data in a JSON formatted PUT request.
Second step was to arrange the data to be received. For the http request to be processed the usual solution is to use a web server. I had a Raspberry Pi to hand (I know many other people on this form use RPis too) and it was like the obvious option. As a receiving side I installed an Apache web server on my Raspberry Pi. Any other server will do the trick as long as it supports cgi scripts. CGI scripting must be enabled on the server. With the Apache this is done by a simple edit of a config file.
The 3-rd step was to write a piece of code that reads the data and stores them on the RPi. This turned out to be rather simple. I can share the code if anyone is interested.
So I ended up with the data stored on the RPi and needed a way to display them. Since I already had the Apache web server running it made sense to display the data on a webpage for which I found a JavaScript package called Highcharts to be very useful (comes with examples too :) ).
And here it is - live ISpindel data chart. This only a snapshot as the server is visible from my home network only.
First of all my motivation - I may just be a privacy freak (this is what my children think) but I'm not happy with all "free services" leeching private data. Many people would think it's not a big deal but for me it's a matter of principal.
So after I got an iSpindel for my birthday, I began exploring its capabilities and how it operates. Basically, what iSpindel does is to send a http request to a preset URL. I guess the format of the data sent along may be a bit different depending on which app is selected in the settings. I went with the universal HTTP interface which as far as could get from the German documentation sends the data in a JSON formatted PUT request.
Second step was to arrange the data to be received. For the http request to be processed the usual solution is to use a web server. I had a Raspberry Pi to hand (I know many other people on this form use RPis too) and it was like the obvious option. As a receiving side I installed an Apache web server on my Raspberry Pi. Any other server will do the trick as long as it supports cgi scripts. CGI scripting must be enabled on the server. With the Apache this is done by a simple edit of a config file.
The 3-rd step was to write a piece of code that reads the data and stores them on the RPi. This turned out to be rather simple. I can share the code if anyone is interested.
So I ended up with the data stored on the RPi and needed a way to display them. Since I already had the Apache web server running it made sense to display the data on a webpage for which I found a JavaScript package called Highcharts to be very useful (comes with examples too :) ).
And here it is - live ISpindel data chart. This only a snapshot as the server is visible from my home network only.