Jan200101 / Jan200101/ShellyPy

ShellyPy.error.NotFound: Not Found even if Shelly 1 is reachable

Open
#16 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
31
Forks
13
PR merge metrics
No merged PRs in 30d

Description

I'm trying to using the library which should be pretty simple. I've used `device = ShellyPy.Shelly("xx.xx.xx.xx")` and with `device.update()` I can see the device name printing `print(device)`

Now, if I use
```
deviceMeter = device.meter(0)
print(deviceMeter['total'])
```
I've the error above

The thing is that I can correctly reach the IP from the same PC I'm trying to connect with Python.

Also, I don't know if I have to active `Allow Cross-Origin Resource Sharing ` on the Shelly?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the ShellyPy.Shelly entry point and trace the requests made by update() and meter(0). Reproduce the Not Found response against the reachable Shelly 1, checking whether the requested endpoint and CORS expectations match the device. Done means the cause is identified and meter(0) behaves correctly or the limitation is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.