Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline sinneD  
#1 Posted : 06 November 2018 06:44:30(UTC)
sinneD


Rank: Advanced Member

Groups: Registered
Joined: 12/03/2011(UTC)
Posts: 101
Location: Chicago

Was thanked: 16 time(s) in 7 post(s)
Greetings all-

I know that SMATH uses API's in its internal programming structure, but can it be used to call outside data sources?

I was looking at the Applied Technology Council Multi-hazard Design Loads Public API page-

https://hazards.atcouncil.org/api

The intent is to be able to the query design loads for each dataset by latitude and longitude: Wind, Snow, Earthqauke and Siesmic.

The page is not entirely clear but it seems to use curl in conjunction with http get to pull the data set of interest.

At first glance, this would seem to be only be beneficial to Civil Engineers working on projects in the US (lower 48, Alaska, Hawaii, Puerto Rico, Guam, American Samoa, and the US Virgin Islands), but I would think the the Eurocode and Canadians would not be far off either. But, many datasets and files are manupulated with curl and API keys for security these days.

I have used curl to pull & push files to webservers, so the feature is familiar to me, but I did not develop it in those instances, I simply followed a cookbook in those cases to set up my own scripts and use them.

I assume as most feature requests, this would probably be a plugin type thing?

Dennis
Join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline uni  
#2 Posted : 06 November 2018 07:37:34(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,494
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
You can try Script region. Using it you can call an external program (cmd script with curl) and then import data. Using Script region also possible to change the data and "insert" it in SMath worksheet "directly". All of these methods require some programming skills.
Russia ☭ forever
Viacheslav N. Mezentsev
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.