riges / netatmo Goto Github PK
View Code? Open in Web Editor NEW.Net implementation of Netatmo API's
License: MIT License
.Net implementation of Netatmo API's
License: MIT License
The json looks like this.
"measures": {
"02:00:00:3f:05:76": {
"res": {
"1678911481": [
-7,
86
]
},
"type": [
"temperature",
"humidity"
]
},
"70:ee:50:3f:59:8e": {
"res": {
"1678911496": [
1018.8
]
},
"type": [
"pressure"
]
}
},
So the propertynames are the mac adresses, and hence cant be deserialized.
public class Measures
{
[JsonProperty("mac_address_NAModule1")]
public MacAddressNAModule1 MacAddressNAModule1 { get; set; }
[JsonProperty("mac_address_NAMain")]
public MacAddressNAMain MacAddressNAMain { get; set; }
[JsonProperty("mac_address_NAModule3")]
public MacAddressNAModule3 MacAddressNAModule3 { get; set; }
[JsonProperty("mac_address_NAModule2")]
public MacAddressNAModule2 MacAddressNAModule2 { get; set; }
}
There are no properties named "mac_address_NAModule1", "mac_address_NAMain", etc
Operating System (Platform and Version) :
.Net version (Core ? Full Framework ?) :
Steps to reproduce the behavior:
The last version doesn't support proxy. It could be very useful in that scenario behind a firewall.
You can implement it easily using FlurlHttp.Configure and defining a ProxyHttpClientFactory where overriding HttpMessageHandler
Describe the solution you'd like
You can add a parameter proxy in the Client method.
This code has been working great until 7/13/2023 when it appears Netatmo has changed the way to request a token.
It looks like they switched to Oauth2 (see https://dev.netatmo.com/apidocumentation/oauth).
Authorization is needed before a token can be requested.
Dependabot couldn't find a .(cs|vb|fs)proj for this project.
Dependabot requires a .(cs|vb|fs)proj to evaluate your project's current .NET dependencies. It had expected to find one at the path: /<anything>.(cs|vb|fs)proj
.
If this isn't a .NET project, or if it is a library, you may wish to disable updates for it from within Dependabot.
You can mention @dependabot in the comments below to contact the Dependabot team.
When using Netatmo project (latest version: v1.41) in a Blazor Webassembly project, flurl returns "Operation is not supported on this platform"
Operating System (Platform and Version) : Webassembly
.Net version : 6
The issue is described in flurl repository: tmenier/Flurl#557, and the issue is fixed in flurl 3.2.0.
I tested it on Netatmo project and the issue is solved.
Updating Netatmo with Flurl.http 3.2.0 nuget package is the solution to fix.
Hi, I see this project is not updated for a while, but I'm a happy user :-). Are you planning to update it according to the latest Netatmo instructions regarding the OAuth authentication scheme described here? https://dev.netatmo.com/apidocumentation/oauth
If not, I will probably need to find an alternative or build something myself.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.