Discuss Scratch

ninjaMAR
Scratcher
1000+ posts

How do you set cloud variables in python using websockets?

How do you set cloud variables in python using websockets?
My code

Last edited by ninjaMAR (March 21, 2021 14:22:01)

ninjaMAR
Scratcher
1000+ posts

How do you set cloud variables in python using websockets?

bump
Zerofile
Scratcher
100+ posts

How do you set cloud variables in python using websockets?

read the cloudmonitor
LandonHarter
Scratcher
1000+ posts

How do you set cloud variables in python using websockets?

Zerofile wrote:

read the cloudmonitor

ninjaMAR wrote:

How do you read the data of cloud variables in python.
Sheep_maker
Scratcher
1000+ posts

How do you set cloud variables in python using websockets?

LandonHarter wrote:

Zerofile wrote:

read the cloudmonitor

ninjaMAR wrote:

How do you read the data of cloud variables in python.
read the cloud monitor in python
SpaceBoy234
Scratcher
78 posts

How do you set cloud variables in python using websockets?

Read https://mv-ezproxy-com.ezproxyberklee.flo.org/logs?projectid=12785898&limit=100&offset=0 in python

Last edited by SpaceBoy234 (Sept. 6, 2020 20:57:59)

ninjaMAR
Scratcher
1000+ posts

How do you set cloud variables in python using websockets?

Bump
1a3c5e7g9i
Scratcher
100+ posts

How do you set cloud variables in python using websockets?

# Makes one request for 100 changes in this project's (12785898) cloud data.
import requests, json
cloud_data = requests.get('https://mv-ezproxy-com.ezproxyberklee.flo.org/logs?projectid=12785898&limit=100&offset=0')
# Converts to a readily useable format if successful.
if cloud_data.ok:
    cloud_data_json = json.loads(cloud_data.content)
else:
    #Forbidden access?
    print("Error: " + cloud_data.reason)
ninjaMAR
Scratcher
1000+ posts

How do you set cloud variables in python using websockets?

bump
ninjaMAR
Scratcher
1000+ posts

How do you set cloud variables in python using websockets?

bump
ninjaMAR
Scratcher
1000+ posts

How do you set cloud variables in python using websockets?

bump
JackK211424
Scratcher
500+ posts

How do you set cloud variables in python using websockets?

I think they mean actually doing it.

I have heard of this, never tried it though so I don't know if it works.
ninjaMAR
Scratcher
1000+ posts

How do you set cloud variables in python using websockets?

JackK211424 wrote:

I think they mean actually doing it.

I have heard of this, never tried it though so I don't know if it works.
That does not work
JackK211424
Scratcher
500+ posts

How do you set cloud variables in python using websockets?

ninjaMAR wrote:

JackK211424 wrote:

I think they mean actually doing it.

I have heard of this, never tried it though so I don't know if it works.
That does not work
Ok nevermind lol
ninjaMAR
Scratcher
1000+ posts

How do you set cloud variables in python using websockets?

bump
ninjaMAR
Scratcher
1000+ posts

How do you set cloud variables in python using websockets?

ninjaMAR wrote:

bump
9gr
Scratcher
1000+ posts

How do you set cloud variables in python using websockets?

ninjaMAR wrote:

ninjaMAR wrote:

bump
Use websockets
I'm not a python guy I'm a JS guy anyway

google it yourself

Last edited by 9gr (Feb. 27, 2021 07:25:24)

ninjaMAR
Scratcher
1000+ posts

How do you set cloud variables in python using websockets?

9gr wrote:

ninjaMAR wrote:

ninjaMAR wrote:

bump
Use websockets
I'm not a python guy I'm a JS guy anyway

google it yourself
I know
Chiroyce
Scratcher
1000+ posts

How do you set cloud variables in python using websockets?

You can setup a Websockets connection to the server with a handshake, but we don't know how and where to include cookies and credentials.
ninjaMAR
Scratcher
1000+ posts

How do you set cloud variables in python using websockets?

Chiroyce wrote:

You can setup a Websockets connection to the server with a handshake, but we don't know how and where to include cookies and credentials.
I used you and @pufferfish_test code as an example

Powered by DjangoBB