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

Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure

API connection GeoSCADA database

EcoStruxure Geo SCADA Expert Forum

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

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:Β 
  • Home
  • Schneider Electric Community
  • Remote Operations
  • EcoStruxure Geo SCADA Expert Forum
  • API connection GeoSCADA database
Options
  • Subscribe to RSS Feed
  • 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
Kirk sbeadle Kirk
307
AndrewScott
Admiral AndrewScott
95
BevanWeiss
Spock BevanWeiss
89
AdamWoodlandToo
Lt. Commander AdamWoodlandToo
36
View All
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
Solved
Fernando84
Lieutenant JG Fernando84
Lieutenant JG

Posted: β€Ž2023-03-23 07:37 AM . Last Modified: β€Ž2023-05-02 11:46 PM

0 Likes
22
5446
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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: β€Ž2023-03-23 07:37 AM . Last Modified: β€Ž2023-05-02 11:46 PM

API connection GeoSCADA database

Hello, I need to get information from a website and put this data into the geo SCADA, this information is from residential flow meters. These devices send the data to the cloud server and the idea is to integrate those data to the geo SCADA data base. Does anybody has any suggestion?

Labels
  • Labels:
  • SCADA
  • Telemetry
  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
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
Kirk sbeadle Kirk
Kirk

Posted: β€Ž2023-03-23 09:15 AM

0 Likes
3
5433
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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: β€Ž2023-03-23 09:15 AM

Sample in C#

https://github.com/GeoSCADA/Utilities-and-Examples/tree/main/SetInternalPoint

 

Sample in Python

https://github.com/GeoSCADA/Utilities-and-Examples/blob/main/PythonSamples/SetPointValue.py

 

Steve

See Answer In Context

Reply

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

sbeadle
Kirk sbeadle Kirk
Kirk

Posted: β€Ž2025-02-14 02:05 AM

0 Likes
1
847
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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: β€Ž2025-02-14 02:05 AM

Hi Fernando, try changing 127.0.0.1 to the address of your server:

node = CSClient.ServerNode( CSClient.ConnectionType.Standard, "127.0.0.1", 5481 )

 

See Answer In Context

Reply

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

Replies 22
du5tin
Lt. Commander du5tin
Lt. Commander

Posted: β€Ž2023-03-23 08:31 AM

0 Likes
0
5440
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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: β€Ž2023-03-23 08:31 AM

This is not a particularly user friendly solution but you could use the Driver Development Kit. This would allow you to create a driver for this API and any standard data it provides using C#. The data would get stored in points on a regular basis, plus you get access to all the features points have (alarms, alarm redirections, history, etc.) and you would have ability to control how often the driver scans or polls the API for new data. 

 

https://community.se.com/t5/Geo-SCADA-Knowledge-Base/Driver-Development-Kit-DDK/ba-p/279081

 

I have done some proof of concept things with this driver DDK for reading data from different API's, like the TCP API on a bitcoin miner, or a RESTful API on a web site. Might work for this. 

Reply

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

Fernando84
Lieutenant JG Fernando84
Lieutenant JG

Posted: β€Ž2023-03-23 08:41 AM

0 Likes
1
5438
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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: β€Ž2023-03-23 08:41 AM

Hi @du5tin. I read about the DDK driver and honesty that is a very difficult way for me.  I read that the best way to connect is to use the pythonnet library to connect to the Geo SCADA .Net client, do you have tried this before?

Reply

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

du5tin
Lt. Commander du5tin
Lt. Commander

Posted: β€Ž2023-03-23 08:44 AM

0 Likes
0
5438
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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: β€Ž2023-03-23 08:44 AM

Another option would be to use a vbscript on a mimic to populate the display or push data to Internal points. Lots of downsides with this one: cannot be regularly polled, can only run when a user visits the mimic or pushes a button, alarming is a lot more difficult or not useful. There are lots of examples of connecting to an API using vbscript online though, and its a little more accessible than using C# and a compiled driver. 

Reply

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

du5tin
Lt. Commander du5tin
Lt. Commander

Posted: β€Ž2023-03-23 08:46 AM

In response to Fernando84
0 Likes
0
5437
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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: β€Ž2023-03-23 08:46 AM

I have not done this. So this puts all the coding outside Geo SCADA so it would need to get triggered somehow. Not a bad way to go and removes some dependencies and issues with the DDK on upgrades. We haven't done this with Python specifically but have done small C# apps that work outside SCADA to pull/push data to the database. 

Reply

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

Fernando84
Lieutenant JG Fernando84
Lieutenant JG

Posted: β€Ž2023-03-23 09:08 AM

0 Likes
0
5435
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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: β€Ž2023-03-23 09:08 AM

Can you please, show me any example of c# code to put data into de geo scada database?

Reply

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

sbeadle
Kirk sbeadle Kirk
Kirk

Posted: β€Ž2023-03-23 09:15 AM

0 Likes
3
5434
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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: β€Ž2023-03-23 09:15 AM

Sample in C#

https://github.com/GeoSCADA/Utilities-and-Examples/tree/main/SetInternalPoint

 

Sample in Python

https://github.com/GeoSCADA/Utilities-and-Examples/blob/main/PythonSamples/SetPointValue.py

 

Steve

Reply

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

Fernando84
Lieutenant JG Fernando84
Lieutenant JG

Posted: β€Ž2023-03-23 09:37 AM

0 Likes
2
5432
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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: β€Ž2023-03-23 09:37 AM

Hi Steve, I'll try the two options. Thank you.

Reply

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

AdamWoodlandToo
Lt. Commander AdamWoodlandToo
Lt. Commander

Posted: β€Ž2023-03-27 04:57 AM

In response to Fernando84
0 Likes
1
5392
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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: β€Ž2023-03-27 04:57 AM

ChatGPT also knows about the Geo SCADA API so can also help you with interfacing if you need more help than the examples posted above

Reply

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

Fernando84
Lieutenant JG Fernando84
Lieutenant JG

Posted: β€Ž2023-03-27 07:25 AM

0 Likes
0
5379
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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: β€Ž2023-03-27 07:25 AM

Hi everyone, I proved the python code, but I got an error "No module named 'clr'", I already install that module but the error persist.  I thought that could be an compiler error, so I tried with PyCharm and Spyder, but in both of them I get the same error.
Any suggestion?

 

Attachments
Reply

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

sbeadle
Kirk sbeadle Kirk
Kirk

Posted: β€Ž2023-03-28 03:55 AM

0 Likes
1
5367
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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: β€Ž2023-03-28 03:55 AM

Perhaps you did not install Pythonnet

Use the command line: pip install pythonnet

Note this is not supported by all versions of Python. It is supported by Python 3.8.

Steve

Reply

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

Jimi
Commander Jimi Commander
Commander

Posted: β€Ž2023-03-29 05:41 AM

In response to AdamWoodlandToo
0 Likes
0
5359
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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: β€Ž2023-03-29 05:41 AM

@AdamWoodlandToo you've just made my day

 

Reply

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

sbeadle
Kirk sbeadle Kirk
Kirk

Posted: β€Ž2023-03-29 06:57 AM

0 Likes
2
5349
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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: β€Ž2023-03-29 06:57 AM

I tried with ChatGPT to ask "how do I use the Geo SCADA client .net API to log in and get object properties?" and I had wrong answers! πŸ˜€

@AdamWoodlandToo what magic incantations did you use?

Reply

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

AdamWoodlandToo
Lt. Commander AdamWoodlandToo
Lt. Commander

Posted: β€Ž2023-03-29 03:01 PM . Last Modified: β€Ž2023-03-29 03:04 PM

In response to sbeadle
1 Like
1
5346
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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: β€Ž2023-03-29 03:01 PM . Last Modified: β€Ž2023-03-29 03:04 PM

It struggles with a couple of things, but with a few prompts it gets 90%+ of the way there. See attached for two examples (as markdown).

 

"ChatGPT_20230323T082555679Z_GeoSCADAMonitoringTool.txt" was my first attempt using GPT-3.5 a while back, I confused the poor thing by later asking about ST in the same thread. Was actually impressed it knew anything of Geo SCADA at this point.

 

"ChatGPT_20230329T214804045Z_GeoSCADAClientAPISumReport" is from just now as I tried to ask it something a bit more involved using GPT-4. Again a few problems that it had to retry but no real difference to say someone starting new on code for Geo SCADA, but in a timeframe of minutes, not hours and so potentially save a fair bit of time. Realistically though you wouldn't get it to write the full code, at least not yet, more just the functions used and someone pulls it together.

 

But in general, I try to use ChatGPT now for anything that takes more than a few mins to see if it can just do it. I needed 25 years of data generated for 100 data points written in Python and upload it to an S3 bucket, so it wrote a quick Python script for me that did the job. I don't know Python so would have taken me a lot longer! Obviously nothing sensitive going into ChatGPT, but used as a tool its quite useful.

 

Edit: https://github.com/esteinmann/chatgpt-convdown is the extension I use to download the ChatGPT chats if it is useful to anyone, assume I haven't reviewed the code or audited it in anyway way so use at your own risk πŸ™‚

Attachments
Reply

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

Fernando84
Lieutenant JG Fernando84
Lieutenant JG

Posted: β€Ž2023-03-29 03:05 PM

In response to sbeadle
0 Likes
0
5345
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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: β€Ž2023-03-29 03:05 PM

You were right Steve, now I'm using python 3.9 and works fine. 

 

Reply

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

sbeadle
Kirk sbeadle Kirk
Kirk

Posted: β€Ž2023-03-30 01:41 AM

In response to AdamWoodlandToo
1 Like
0
5332
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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: β€Ž2023-03-30 01:41 AM

It's like dealing with a junior member of staff, you need to review GPT's code and tell it what's wrong.

Reply

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

hcruz
Crewman hcruz
Crewman

Posted: β€Ž2023-11-06 01:32 PM

In response to sbeadle
0 Likes
1
4497
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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: β€Ž2023-11-06 01:32 PM

Hi Steve, i saw the python example and tried to use it but got the following error.

 

ClearScada.Client.CommunicationsException: The request could not be processed. The server returned an unknown status code 0x80090331.

 

any suggestions on what should i look into?

 

best regards

 

Holger

Reply

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

AndrewScott
Admiral AndrewScott
Admiral

Posted: β€Ž2023-11-07 01:55 AM

In response to hcruz
0 Likes
0
4491
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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: β€Ž2023-11-07 01:55 AM

HRESULT 0x80090331 is SEC_E_ALGORITHM_MISMATCH which is "The client and server cannot communicate, because they do not possess a common algorithm.".

This is an error from Microsoft SCHANNEL (for TLS) so is related to the secure connection between the client and server. I would suggest checking the the TLS settings (on both client and server) and the certificates your using.


Andrew Scott, R&D Principal Technologist, AVEVA
Reply

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

sohankamble
sohankamble
Cadet

Posted: β€Ž2024-11-13 09:21 PM

0 Likes
0
1895
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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: β€Ž2024-11-13 09:21 PM

I want to replace the ODBC connection in Elipse SCADA with a custom API for bidirectional communication with the SQL database. The API should support real-time data logging, retrieval, and control commands, with robust error handling, security, and optimized performance to reduce SCADA workload and improve reliability. Can anyone help me with this?

Reply

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

sbeadle
Kirk sbeadle Kirk
Kirk

Posted: β€Ž2024-11-15 01:26 AM

0 Likes
0
1860
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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: β€Ž2024-11-15 01:26 AM

Eclipse SCADA is not Geo SCADA

Reply

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

Fernando84
Lieutenant JG Fernando84
Lieutenant JG

Posted: β€Ž2025-02-13 05:32 AM

In response to sbeadle
0 Likes
0
874
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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: β€Ž2025-02-13 05:32 AM

Hi Steve!, I was using the code shared in the web links, more specifically, the code made with python, but it only works when I run the script on the same machine where the GeoScada server is installed.  Is it possible to use the same script but connecting to another server??

Reply

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

sbeadle
Kirk sbeadle Kirk
Kirk

Posted: β€Ž2025-02-14 02:05 AM

0 Likes
1
848
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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: β€Ž2025-02-14 02:05 AM

Hi Fernando, try changing 127.0.0.1 to the address of your server:

node = CSClient.ServerNode( CSClient.ConnectionType.Standard, "127.0.0.1", 5481 )

 

Reply

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

Fernando84
Lieutenant JG Fernando84
Lieutenant JG

Posted: β€Ž2025-03-05 04:59 AM

In response to sbeadle
0 Likes
0
551
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • 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: β€Ž2025-03-05 04:59 AM

Thank You Steve!, after fixing some firewall troubles, it worked. 

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

Β 
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
Brand-Logo
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 Β© 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of