Predix_Logo
  • Categories
    • Questions
    • Predix | Updates
      • Pricing
      • Product
    • Deloitte - Private
    • How-To
    • Accenture-Private
  • Explore
    • Topics
    • Questions
    • Articles
    • Feedback or Feature Requests
  • Sign in
  • Home /
  • Questions /
avatar image
0
Question by luiscovar@csu.fullerton.edu · Apr 16, 2016 at 05:32 PM · time-series-servicetime-seriespython

Send data to time series with python script.

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

Comment
Add comment
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

  • Sort: 
avatar image
0

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

Comment
Add comment · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
1

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.

Comment
Add comment · Show 1 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Brandon.Heinrich@ge.com · May 27, 2016 at 09:24 AM 0
Share

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.

Follow this Question

Answers Answers and Comments

42 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Timeseries 401 Unauthorized 2 Answers

How to get time series visualization into the seed app 1 Answer

Time series bug? 3 Answers

Time series request payload requires Origin field 1 Answer

Python Analytic won't write output to time series using orchestration 1 Answer

GE Monogram
  • Legal
  • Cookies
  • Forum Terms
  • Contact Us
  • Copyright © 2017 General Electric Company. All rights reserved.


Enterprise
Social Q&A

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Submit your feedback or feature request
  • Categories
  • Questions
  • Predix | Updates
    • Pricing
    • Product
  • Deloitte - Private
  • How-To
  • Accenture-Private
  • Explore
  • Topics
  • Questions
  • Articles
  • Feedback or Feature Requests