Posts by Maximilian Batz
Entscheidung für Raspberry Pi als Embedded Development-Plattform
Als einer der approved Raspberry Pi Reseller, und einem offiziellen Reseller der Pi Zero Serie (wir waren übrigens der erste auf dem europäischen Festland) mit starken technischen Kompetenzen rund um die Raspberry Pi Plattform möchten wir Sie bei Ihrer Entscheidung für oder gegen die Plattform unterstützen, und einige immer wieder kehrende Fragen beantworten. Die Abbildung…
WeiterlesenVuetify :: Open detail row programmatically
For the upcoming PiCockpit v2.0 release, I am preparing a GPIO application. The GPIO entries are table rows – and to configure them, we want to be able to access the detail row by clicking on the configure button: clicking either the chevron or the configure button will lead to the detail row opening: Here…
Weiterlesenenabling and disabling a systemd service in Python using DBus
The upcoming picockpit-client reacts to deletion events from the frontend by disabling it’s service (the application will stay installed, however). Similarly, when you decide to run picockpit-client connect again, the service will be re-enabled and started automatically for you. This is possible using the Python DBus interface. the DBus is a bus system for interacting…
WeiterlesenRaspbian SSH Server fails after upgrade from Stretch to Buster (no SSH connection)
I used this excellent guide to update my Raspbian from Stretch to Buster: https://pimylifeup.com/upgrade-raspbian-stretch-to-raspbian-buster/ After rebooting my Pi, the SSH connection was gone. Logging into the Pi using the attached keyboard and monitor allowed me to debug the issue: service ssh status journalctl -u ssh -n 200 “Missing privilege separation directory /run/sshd” This directory needs…
WeiterlesenHow to set unique object ids in embedded documents across a MongoDB collection
MongoDB’s updateMany can be used to update all documents which are matched. Problem If, however, you want to set unique new ObjectIDs in your update, you would find that MongoDB sets the same ObjectID for every entry: db.getCollection(‘mypis_collectedpis’).updateMany({}, {$set: {apps: { “com.picockpit/core”: { meta: { version: “2.0”, name: “PiCockpit Core”, image: “”, description: “PiCockpit.com…
Weiterlesenswitching from JSON to MsgPack in a backwards compatible manner with Paho MQTT (JavaScript)
picockpit.com makes heavy use of MQTT. For the upcoming version 2.0 I have decided to switch it to MsgPack. Why MsgPack? MsgPack (actually called MessagePack – packages tend to use MsgPack) is a binary format, aimed at compatibility with JSON, but decreasing file size (which is good for saving bandwidth & server resources). Another advantage:…
Weiterlesenenvoy fix for serving big files from the backend / timeouts / aborted downloads
Customers were complaining about not being able to download big files from our websites (e.g. PiDoctor on PiCockpit.com). Initially I could not replicate the issue locally, the files seemed to be downloading fine. After further investigation I determined that the downloads were cutting out after a certain time – depending on your download speed, thus,…
WeiterlesenHistorische Texte
Als Teil der Überarbeitung der pi3g.com Webseite, in Vorbereitung auf den Launch der Google Coral.AI und AIY Produktreihe, habe ich unsere Webseite auf Englisch umgestellt. Hier als Referenz einige der Texte die wir früher hatten: Wir sind als Raspberry Pi Foundation approved reseller, sowie einer von zwei deutschen Pi Zero Distributoren Ihr starker Partner rund…
Weiterlesen20888
20.888 is the total number of Raspberry Pi we (pi3g e.K.) sold last year (2019). Thank you to all our customers, resellers and partners.
WeiterlesenDealing with NIL in JSON::Any in Crystal Lang
One of the challenges when developing with Crystal is that it is not as forgiving about data types as, say, Python or Ruby. nil will keep you occupied. The following error message: cast from Nil to String failed, at /usr/share/crystal/src/json/any.cr:220:5:220 can be solved by: # cast to string, THEN check if it is nil if…
Weiterlesen