Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Schneider Electric
Community
Community
Notifications
close
  • Categories
  • Forums
  • Knowledge Center
  • Blogs
  • Ideas
  • Events & Webinars
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register

Contact Support

Close

Ask our Experts

Have a question related to our products, solutions or services? Get quick support on community Forums

Email Us

For Community platform-related support, please email us

New Community Ranking System
Our Community ranking system has recently been updated. You may notice changes in user rankings and receive system messages or notifications. If you have questions about how the new ranking works, please refer to the announcement post for more details (click here).

Python script backfill data from Web API

EcoStruxure Geo SCADA Expert Forum

Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).

Search in

Improve your search experience:

  • Exact phrase → Use quotes " " (e.g., "error 404")
  • Wildcard → Use * for partial words (e.g., build*, *tion)
  • AND / OR → Combine keywords (e.g., login AND error, login OR sign‑in)
  • Keep it short → Use 2–3 relevant words , not full sentences
  • Filters → Narrow results by section (Knowledge Base, Users, Products)
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Select a Country

Please select a country to continue with beta search.

  • Home
  • Schneider Electric Community
  • Remote Operations
  • EcoStruxure Geo SCADA Expert Forum
  • Python script backfill data from Web API
Options
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
sbeadle
sbeadle Champion
335
AndrewScott
AndrewScott
125
BevanWeiss
BevanWeiss
103
View All

Recommended Forums

  • Remote Operations Forum

  • APC UPS Data Center & Enterprise Solutions Forum

Related Products
product field
Schneider Electric
EcoStruxure™ Geo SCADA Expert

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to EcoStruxure Geo SCADA Expert Forum
Start a Topic
Solved
Clearscada_EIT
Clearscada_EIT
Explorer

Posted: ‎2026-06-01 01:39 PM

0 Likes
1
191
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2026-06-01 01:39 PM

Python script backfill data from Web API

Hi 

I'm currently using Python script to pull data from a Web API, very similar to the python Example here
https://github.com/GeoSCADA/Utilities-and-Examples/blob/main/PythonSamples/WeatherToGeoSCADA.py

If Geoscada loses connection to the Web API, for a long period of time, is there anyway to backfill these data to point historic in Geoscada, providing the historical data is available in the Web API

Thanks 

 

Labels
  • Labels:
  • SCADA
  • ViewX
  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
Reply

Link copied. Please paste this link to share this article on your social media post.

  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
sbeadle
sbeadle Champion
Champion

Posted: ‎2026-06-03 12:30 AM

0 Likes
0
173
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2026-06-03 12:30 AM

Yes, all you need to do it set a timestamp property and then the value for each pair of time/values. (You can also add a quality value). The data must be processed in timestamp order.

Just set the quality, timestamp and value like this:

 

quality = 192 # Good
sampletime = datetime.now() # This is now, but could be any time after the last sample time
samplevalue = 3.14159265358979
connection.set_properties( P.id, [
            ("PresetQuality", Variant(VariantType.I4, quality)),
            ("PresetTimestamp", Variant(VariantType.Date, sampletime)),
            ("CurrentValue", Variant(VariantType.R8, samplevalue))
        ] )

 

Note that by using this method all values will be processed for alarm limits.

An alternative method is to use the history methods to load samples/times. This is quicker because you can (1) do it for multiple times/samples in one call, and (2) no alarms are processed.

 

See Answer In Context

Reply

Link copied. Please paste this link to share this article on your social media post.

Reply 1
sbeadle
sbeadle Champion
Champion

Posted: ‎2026-06-03 12:30 AM

0 Likes
0
174
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2026-06-03 12:30 AM

Yes, all you need to do it set a timestamp property and then the value for each pair of time/values. (You can also add a quality value). The data must be processed in timestamp order.

Just set the quality, timestamp and value like this:

 

quality = 192 # Good
sampletime = datetime.now() # This is now, but could be any time after the last sample time
samplevalue = 3.14159265358979
connection.set_properties( P.id, [
            ("PresetQuality", Variant(VariantType.I4, quality)),
            ("PresetTimestamp", Variant(VariantType.Date, sampletime)),
            ("CurrentValue", Variant(VariantType.R8, samplevalue))
        ] )

 

Note that by using this method all values will be processed for alarm limits.

An alternative method is to use the history methods to load samples/times. This is quicker because you can (1) do it for multiple times/samples in one call, and (2) no alarms are processed.

 

Reply

Link copied. Please paste this link to share this article on your social media post.

Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 

You’ve reached the end of your document

WHAT’S NEXT?

Ask our Experts

Didn't find what you are looking for? Ask our experts!

My Dashboard

Check out the new Feeds and activities that are relevant to you.

To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support

    Ask our Experts

    Have a question related to our products, solutions or services? Get quick support on community Forums

    Email Us

    For Community platform-related support, please email us

Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2026 Schneider Electric

Welcome!

Welcome to your new personalized space.

of

Explore