Git Product home page Git Product logo

iobroker.schoolfree's Introduction

Hello,

most of my time, besides family and job, is spent on making IoT easier to use for everyone - with Node.js and JavaScript.

I am one of the developers of the smart home automation software ioBroker. In addition to developing my own adapters for ioBroker, I continue to assist in the development of ioBroker.

Furthermore, I provide support on Github, in the ioBroker forum and on Discord.

My goal with all this work is to provide the best possible quality for users and community members and to make life easier and more convenient for all ioBroker users.

If you want to support me, you can:

Donate

iobroker.schoolfree's People

Contributors

apollon77 avatar dependabot[bot] avatar mcm1957 avatar simatec avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

iobroker.schoolfree's Issues

Adapter seems not to work properly

schoolfree.0.info.today should be true - but is false (Bundesland Schleswig-Holstein)

reinstalling Adapter couple of times with different versions does not solve this issue

Versions:

  • Adapter version: 0.7.0 / 1.0.0
  • JS-Controller version: 3.3.11
  • Node version: 14.7.0
  • Operating system: Raspberry / Buster

start/stop does not work either on terminal
**It only works if I use 'iob debug schoolfree' on terminal. **

not working:
image

not Working:

host.iobroker   2021-06-22 09:46:18.255 error instance system.adapter.schoolfree.0 terminated with code 7 (ADAPTER_ALREADY_RUNNING)
host.iobroker   2021-06-22 09:46:15.506 info instance system.adapter.schoolfree.0 started with pid 24940
host.iobroker   2021-06-22 09:46:15.449 info instance scheduled system.adapter.schoolfree.0 1 0 * * *
host.iobroker   2021-06-22 09:46:12.236 info stopInstance system.adapter.schoolfree.0 (force=false, process=false)
host.iobroker   2021-06-22 09:46:12.234 info "system.adapter.schoolfree.0" enabled
host.iobroker   2021-06-22 09:46:00.299 info stopInstance canceled schedule system.adapter.schoolfree.0
host.iobroker   2021-06-22 09:46:00.296 info stopInstance system.adapter.schoolfree.0 (force=false, process=false)
host.iobroker   2021-06-22 09:46:00.292 info "system.adapter.schoolfree.0" disabled

working with 'iob debug schoolfree' in terminal:

image

image

Bewegliche Ferientag man. integrieren

Hallo,

wäre es nicht ein tolles Feature, wenn man bewegliche Ferientage manuell hinzufügen könnte. Leider zeigt die Quellwebsite die nicht für unseren Kreis an und ich müsste das umständlicher über einen separaten Kalender realisieren, dann könnte ich aber auch gleich alle Ferien in den Kalender importieren.

Lässt sich eine manuelle Befüllung mit beweglichen Ferientagen noch integrieren?

Danke und viele Grüße

Markus

Status wurde nach den Ferien nicht zurück auf "false" gesetzt.

Describe the bug
Die Kinder haben mir berichtet dass ihr Licht morgens nicht mehr angeht.
Ich habe mir das heute angeschaut und gesehen dass bei today und tomorrow der Status immer noch auf true steht.
Wir wohnen in Schleswig-Holstein und dort sind seit ein paar Tagen gar keine Ferien mehr.

To Reproduce
Das kann ich leider nicht sagen, ich habe mir das eben gerade erst angeschaut.

Expected behavior
Das nach den Ferien wieder der Status auf false gesetzt ist.

Screenshots & Logfiles
Ich sitze jetzt gerade nicht am PC, aber es gab offensichtlich keine verdächtigen Einträge unter Protokolle.
Wie kann ich etwas sehen was helfen kann?

Versions:

  • Adapter version: 1.1.4
  • JS-Controller version: 5.0.19
  • Node version: 18.20.2
  • Operating system: DietPi 64bit (Raspberry Pi 4)

Additional context
Ich habe einfach in den Einstellungen den Name der Schule weggemacht, so dass der Adapter neu lädt, und dann habe ich wieder den Name der Schule angeklickt und noch einmal abgespeichert.
Jetzt ist der Status wieder korrekt gesetzt, ich werde jetzt beobachten ob es in Zukunft noch einmal Probleme gibt.

Please convert README.md to plain english

The main README.md should be written in pure english. Currently you have german and english docu within one file.
This can confuse automatic translation for ioBroker webseite.

Please move the german partt to a seperate file (and add a link to it into README.md)

Thank s a lot

Internal server error, http status 500

Hi,

ich bekomme immer wieder folgende Meldung im log angezeigt,

schoolfree.0
2022-06-13 00:01:34.156	info	Terminated (NO_ERROR): Without reason

schoolfree.0
2022-06-13 00:01:04.102	warn	schoolfree request holiday_or_vacation_types error: Error: Request failed with status code 500

schoolfree.0
2022-06-13 00:01:03.216	info	starting. Version 1.0.1 in /opt/iobroker/node_modules/iobroker.schoolfree, node: v14.19.3, js-controller: 4.0.23

Himmelfahrtsferien --> Pfingstferien

Ich bekomme für die nächsten Ferien in Bayern/Nürnberger Land Himmelfahrtsferien angezeigt.
Der allgemeine Begriff ist Pfingstferien
Nicht dramatisch, sollte aber geändert werden - schließlich ist Himmelfahrt 10 Tage vor Pfingsten.

Please add your adapter to ioBroker.discovery

I am an automatic service from ioBroker that searches adapters and makes suggestions.

I noticed that your adapter is not integrated in the ioBroker.discovery. Using the Discovery adapter, ioBroker can automatically find devices or suggest services to the user for installation. If possible I would live to see your adapter added there.

Some adapters have already been added and you can use them as blueprints. See: https://github.com/ioBroker/ioBroker.discovery You need to fork this project and then create a PR for your adapter to be added.

Basically the plugins can do HTTP calls, UDP discovery, MDNS, UPNP and will iterate over all devices found by IP scan and check local serial ports. If you want you can also add new discovery methods but please try to do that with at least dependencies as possible.

Then create one file under lib/adapters for your adapter to implement the detection and proposal of an instance to the user.

On questions, the other developers will support in the forum or via GitHub issues too.

If no detection is possible, simply close this issue and I won't bother you again. ;-)

Thanks,
your automatic adapter checker.

P.S.: There is a community in Github, which supports the maintenance and further development of adapters. There you will find many experienced developers who are always ready to assist anyone. New developers are always welcome there. For more informations visit: https://github.com/iobroker-community-adapters/info

no update of holidays

the actual version (0.5.0) is not updating holidays. we're having holidays in Baden-Würtemberg bout adapter is not showing them.

The latest version is working after filled out all filled in admin.

Tägliche Fehlermeldung

Describe the bug
Ferien werden nicht automatisch aktualisiert. Wenn dann nur nach manuellem Neustart.
Fehlermeldung:
schoolfree.0
2023-11-23 00:01:02.971 warn schoolfree request holiday_or_vacation_types error: AxiosError: Request failed with status code 500

To Reproduce
Es kommt täglich eine Fehlermeldung

Expected behavior
Was kann ich tun?

Screenshots & Logfiles
If applicable, add screenshots and logfiles to help explain your problem.

Versions:

  • Adapter version: <v1.1.3> aber auch schon früher
  • JS-Controller version: <v16.17.0>

Verify Compact mode for your adapter

We have detected that your adapter supports the compact mode. Please use the latest js-controller 2.0 and verify that everything works.

Some more information what is important to check can be found at ioBroker/ioBroker.js-controller#512

On questions please answer to the linked issue. Please close this issue after your test and add the version number that you have tested please as a comment.

Thank you for your support.

Compatibility check to js-controller 4.0

Dear Adapter developer,

with js-controller 4.0 object definitions are now also checked that min/max in only provided for number/mixed objects and that the type of the default value matches to the object type.

If something is not correct this is logged as 'warning' or 'info' log.

Please also make sure to update to the lastest @iobroker/testing dependency 2.5.4 or to accept the PR from Apollon77 for legacy testing!

Please spent some time to verify your adapter by ideally starting with a fresh instance and do some actions and verify the log. If you see a warn or info log there from these checks please adjust the adapter and fix the relevant cases.

For questions please refer to ioBroker/ioBroker.js-controller#1749

Please close the issue after you checked it.

Thank you very much for your support to get the best experience for the growing numbers of ioBroker users!

Compatibility check and testing for Node.js 14 and 16

Dear Adapter developer,

Node.js 14 is now available for a year and Node.js 16 was release just some days ago and will become LTS by October 2021. We plan to update the ioBroker Node.js recommendation (currently 12.x) to 14.x later this year.

Please check your adapter with Node.js 14 especially, and ideally also directly with Node.js 16

Please add both versions to the adapter testing which is executed on commits.

If your adapter requires a certain minimum version of Node.js please set the 'engine' setting in package.json accordingly! Please also do this if the adapter is not able to work in certain Node.js versions, so that ioBroker can prevent users from installing te adapter if not compatible!

On questions please talk to us at ioBroker/ioBroker.js-controller#1138

Please close the issue after you checked it.

Thank you very much for your support!

Eigene freie Tage einpflegen

Hallo,

ist es möglich noch eine Erweiterung in den Adapter einzubauen, wo man Freie Tage (z.B. Brückentage) eintragen kann?

Die Schule meines Sohnes taucht leider nicht in der Liste auf.

Think about to fix the issues found by adapter checker

I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:

https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/simatec/ioBroker.schoolfree

  • [E605] No actual year found in copyright. Please add "Copyright (c) 2022 simatec [email protected]" at the end of README.md
  • [E701] No actual year found in LICENSE. Please add "Copyright (c) 2022 simatec [email protected]" at the start of LICENSE

Thanks,
your automatic adapter checker.

P.S.: There is a community in Github, which supports the maintenance and further development of adapters. There you will find many experienced developers who are always ready to assist anyone. New developers are always welcome there. For more informations visit: https://github.com/iobroker-community-adapters/info

Compatibility check to js-controller 3.3 and Admin5 React UI

Dear Adapter developer,

with js-controller 3.2 and js-controller 3.3 some additional checks were added to make sure that created objects match to the specifications and also written state values match to the object definition.

If something is not correct this is logged as 'warning' or 'info' log.

Please take the time to verify your adapter by ideally starting with a fresh instance and do some actions and verify the log. If you see a warn log there from these checks please adjust the adapter and fix the relevant cases.

For questions please refer to ioBroker/ioBroker.js-controller#1301

Additionally we are preparing Admin 5 which will have a completely rewritten UI. Please install Admin 5, activate that new UI and verify that the configuration of you adapter works as expected also there.

More informations on Admin 5 can be found in Forum https://forum.iobroker.net/topic/44282/test-adapter-admin-5-0-x-alpha-der-neuen-ui

Please close the issue after you checked it.

Thank you very much for your support!

schoolfree set state error: TypeError: Cannot read property 'name' of undefined

ich bekomme regelmäßig folgende Warnung im Log.

schoolfree.0 2020-05-25 08:08:16.894 debug (4817) Plugin sentry destroyed
schoolfree.0 2020-05-25 08:08:16.850 debug (4817) cleaned everything up...
schoolfree.0 2020-05-25 08:07:56.850 info (4817) schoolfree request done
schoolfree.0 2020-05-25 08:07:56.848 debug (4817) ignore public holiday
schoolfree.0 2020-05-25 08:07:56.817 warn (4817) schoolfree set state error: TypeError: Cannot read property 'name' of undefined
schoolfree.0 2020-05-25 08:07:56.816 debug (4817) counties number:
schoolfree.0 2020-05-25 08:07:56.446 info (4817) starting. Version 0.6.1 in /opt/iobroker/node_modules/iobroker.schoolfree, node: v12.16.3, js-controller: 3.1.4
schoolfree.0 2020-05-25 08:07:56.362 debug (4817) Plugin sentry Initialize Plugin (enabled=true)
schoolfree.0 2020-05-25 08:07:54.832 debug (4817) statesDB connected
schoolfree.0 2020-05-25 08:07:54.832 debug (4817) States connected to redis: 127.0.0.1:9000
schoolfree.0 2020-05-25 08:07:54.825 debug (4817) States create System PubSub Client
schoolfree.0 2020-05-25 08:07:54.824 debug (4817) States create User PubSub Client
schoolfree.0 2020-05-25 08:07:54.820 debug (4817) Redis States: Use Redis connection: 127.0.0.1:9000
schoolfree.0 2020-05-25 08:07:54.820 debug (4817) objectDB connected
schoolfree.0 2020-05-25 08:07:54.818 debug (4817) Objects connected to redis: 127.0.0.1:9001
schoolfree.0 2020-05-25 08:07:54.808 debug (4817) Objects client initialize lua scripts
schoolfree.0 2020-05-25 08:07:54.808 debug (4817) Objects create User PubSub Client
schoolfree.0 2020-05-25 08:07:54.807 debug (4817) Objects create System PubSub Client
schoolfree.0 2020-05-25 08:07:54.806 debug (4817) Objects client ready ... initialize now
schoolfree.0 2020-05-25 08:07:54.794 debug (4817) Redis Objects: Use Redis connection: 127.0.0.1:9001

iobroker 3.1.4, nodejs 12.16.3, npm 6.14.4, Debian 10 (VM) unter Proxmox

Update stable version in repo from 1.1.1 to 1.1.2

Think about update stable version to 1.1.2

Version: stable=1.1.1 (185 days old) => latest=1.1.2 (15 days old)
Installs: stable=1483 (71.37%), latest=216 (10.39%), total=2078

Click to use developer portal
Click to edit

Note: This is an automatically generated message and not personally authored by bluefox!

Update stable version in repo from 1.1.2 to 1.1.3

Think about update stable version to 1.1.3

Version: stable=1.1.2 (74 days old) => latest=1.1.3 (15 days old)
Installs: stable=1395 (64.14%), latest=216 (9.93%), total=2175

Click to use developer portal
Click to edit

Note: This is an automatically generated message and not personally authored by bluefox!

Think about to fix the issues found by adapter checker

I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:

https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/simatec/ioBroker.schoolfree

  • [E605] No actual year found in copyright. Please add "Copyright (c) 2022 simatec [email protected]" at the end of README.md
  • [E701] No actual year found in LICENSE. Please add "Copyright (c) 2022 simatec [email protected]" at the start of LICENSE

Thanks,
your automatic adapter checker.

P.S.: There is a community in Github, which supports the maintenance and further development of adapters. There you will find many experienced developers who are always ready to assist anyone. New developers are always welcome there. For more informations visit: https://github.com/iobroker-community-adapters/info

Release script: Action required

Hi, it looks like you are using @alcalzone/release-script to manage your releases.
When updating to the latest version, you need to remove the following line from your .github/workflows/test-and-release.yml if you want the releases to keep working:

  deploy:
    # Trigger this step only when a commit on master is tagged with a version number
    if: |
      contains(github.event.head_commit.message, '[skip ci]') == false &&
      github.event_name == 'push' &&
-     github.event.base_ref == 'refs/heads/master' &&
      startsWith(github.ref, 'refs/tags/v')

It may also look like this one:

  deploy:
    # Trigger this step only when a commit on master is tagged with a version number
    if: |
      contains(github.event.head_commit.message, '[skip ci]') == false &&
      github.event_name == 'push' &&
-     github.event.base_ref == 'refs/heads/main' &&
      startsWith(github.ref, 'refs/tags/v')

Wrong next vacation

The adapter currently shows the summer vacation for NRW as the next vacation.
The following is displayed on the mehr-schulferien.de website:

grafik

So the next vacation would be the Pfingstferien and not the Sommerferien.

In the JSON file https://www.mehr-schulferien.de/api/v2.0/periods I also find an entry for this holiday day:
"ends_on": "2021-05-25",
"holiday_or_vacation_type_id": 5,
"id": 756,
"is_public_holiday": false,
"is_school_vacation": true,
"is_valid_for_everybody": false,
"is_valid_for_students": true,
"location_id": 11,
"starts_on": "2021-05-25",
"updated_at": "2020-03-20T10:10:41"

Current falsch

Heute am Sonntag, den 5.4., wird im Datenpunkt "current" bereits die Osterferien, die erst am 6.4. anfangen angezeigt. Richtig wäre "none".

Das Flag "today" ist korrekt auf false.

optional support of weekend

Currently at weekends the status is false - besides the fact that schools are (typically) closed and kids are at home. An optional checkbox for setting the status to "true" also at weekends would be great

Please check ioBroker.schoolfree with js-controller 2.0

Hi,

the new js-controller 2.0 will come into latest repository in the next days and we want to make sure that all adapters are working well. We already did a 2 weeks Beta test and so some adapter were aleady checked and some needed slight adjustments.

You can find more information in ioBroker/ioBroker.js-controller#482 and in the ioBroker Forum. If you have more technical questions please write in the referenced issue or in the Developer thread please. General questions are best in the genral thread.

Please update your systems to js-controller 2.0 and check your adapter.

Please close this issue once you have checked your adapter or received successfull reports from users.

Thank you very much for your support. Please contact us in the other Threads or Forum on any question.

Additional, movable vacations

The areas and schools have the possibility to set additional floating holidays.
These are often used for carnival and bridge days, but are flexible.

This means that I can not use the adapter in its current form, because exactly this possibility is not given.
Maybe you offer the option that one can enter this ?

Think about to fix the issues found by adapter checker

I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:

https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/simatec/ioBroker.schoolfree

  • [E150] No common.connectionType found in io-package.json
  • [E152] No common.dataSource found in io-package.json

Thanks,
your automatic adapter checker.

P.S.: There is a community in Github, which supports the maintenance and further development of adapters. There you will find many experienced developers who are always ready to assist anyone. New developers are always welcome there. For more informations visit: https://github.com/iobroker-community-adapters/info

Think about to fix the issues found by adapter checker

I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:

https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/simatec/ioBroker.schoolfree

  • [E301] Tests on Travis-ci.org are broken. Please fix.

Thanks,
your automatic adapter checker.

P.S.: There is a community in Github, which supports the maintenance and further development of adapters. There you will find many experienced developers who are always ready to assist anyone. New developers are always welcome there. For more informations visit: https://github.com/iobroker-community-adapters/info

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.