linuxdoku / mhtemperature Goto Github PK
View Code? Open in Web Editor NEWWebService um die Wassertemperatur des Freibad Marienhöhe abzufragen.
WebService um die Wassertemperatur des Freibad Marienhöhe abzufragen.
Der WebService soll die per DWD aggregierten Daten adequat zur Wassertemperatur bereitstellen.
Da NSMenuItem nur ein Feld mit Text bestitzt, ich aber die Temperatur auf der Linken Seite anzeigen lassen möchte (ähnlich dem Wifi Menüpunkt oder den Hotkeys in Spectacle) muss ich wohl einen eigenen NSMenuItem Typ schreiben, der zwei Child Views beinhält.
Über die DWD Bibliothek von mir soll die Lufttemperatur ermittelt werden. Diese wird in die selbe Datenbank wie die Temperatur gespeichert.
Für folgendes resx Translation Markup:
<data name="Quit">
<value>Quit</value>
</data>
wird folgender Code über System.Resources.Tools.StronglyTypedResourceBuilder
erzeugt:
internal static System.Resources.ResXDataNode Quit {
get {
object obj = ResourceManager.GetObject("Quit", resourceCulture);
return ((System.Resources.ResXDataNode)(obj));
}
}
Hier kommt es zu einer TypeCastException, da GetObejct natürlich einen String zurückliefert.
Sollte von Xamarin bereits gefixt sein: https://bugzilla.xamarin.com/show_bug.cgi?format=multiple&id=21264
Bisher führt der Scheduler die Action einfach alle 15 Minuten aus. Ein Richtwert, damit er zu bestimmten Uhrzeit ausgefürt wird wäre ideal, um schnellstmöglich die neusten Messwerte in den Datenbank zu bekommen.
Die Temperatur um ~13:52 Uhr kann nicht gespeichert werden, da der Zeitstempel nicht vom RegEx Pattern erfasst wird.
Logging wurde erweitert, ggf. morgen die Logs prüfen.
Wenn man den Service beendet wird folgende Exception in die Ereignisanzeige geloggt:
Unhandled exception occurred!
System.Threading.Tasks.TaskCanceledException: Eine Aufgabe wurde abgebrochen.
bei System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
bei MHTemperature.Service.Infrastructure.Scheduler.<>c__DisplayClass0_0.<<Interval>b__0>d.MoveNext()
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
bei System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_1(Object state)
bei System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
bei System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
bei System.Threading.ThreadPoolWorkQueue.Dispatch()
bei System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
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.