I want to use a raspberry pi to simulate data and send it to a time series then display it in the predix-seed app. I've read the "Predix Machine Starter for Any Embedded Device such as a Raspberry Pi" tutorial but it wasnt that helpful and I would like to use python instead of java.
Can this be done, if so how?
Thanks
Answer by jeff@data-ken.org · Jul 30, 2017 at 11:32 AM
Hi, I put together a simple end-to-end example of using Python to send data to the Time Series service. This uses the Web Sockets API and runs directly on your OS, outside the Predix Machine. The code and documentation are on Github here: https://github.com/jfischer/ge-predix-python-timeseries-example
Answer by christian.zambrano@ge.com · Apr 16, 2016 at 09:56 PM
You can't run Python directly on Predix Machine-proper which is an OSGi container, but you could easily have a python script that generates data and communicates with a simple service running on Predix Machine either through HTTP or TCP and have the java service send the data to the cloud as there are quite a few examples bundled with Predix Machine that shows you how to do that.
Note: OSGi containers are meant to run JVM code so there is potential you could run Jython code but have never tried it and it might be more trouble that it is worth.
Could you possibly show some of those links? I am trying to do just that, and I find that funny you mentioned this as simply googling for this exact thing has no results.