Giter Site home page Giter Site logo

lesander / fritzbox.js Goto Github PK

View Code? Open in Web Editor NEW
53.0 8.0 10.0 1.45 MB

:telephone: The leading AVM Fritz!Box API for NodeJS and JavaScript.

Home Page: https://fritzbox.js.org

License: Other

JavaScript 96.31% Shell 3.69%
javascript nodejs fritzbox api es6 npm iot await-promises async avm

fritzbox.js's People

Contributors

juergenhoetzel avatar lesander avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fritzbox.js's Issues

Tam Messages

Today i've tried to get the tam messages using nodejs.
I used the plain example, but got this error:
{
error: { message: 'Requested page does not exist on the Fritz!Box.' }
}

Any ideas how to fix this - or is it a problem in fritzbox.js?

Incoming call?

Is it possible to retrieve an event like onIncomingCall and trigger an action if it occurs?

Thanks,
KLVN

downloadTamMessage yields Error: Not authenticated correctly for communication with Fritz!Box.

Hi,

first of all -- great project! I am trying to build an automation that reads and transcribes tam messages. However, just a very basic script that downloads the messages does not seem to work. I basically copy pasted your example from the tests and while I can read the tam list, I can not download them. My remote path looks like this /data/tam/rec/rec.0.003; the options work with fritz.getTamMessages so there can't be an error in username/password/server. Interestingly, an empty local file also is written. I get the error Error: Not authenticated correctly for communication with Fritz!Box.

Any idea what I might be doing wrong? I have a Fritz!Box 7590 with OS 07.01.

Roadmap

With 2.0.0 released, I will now focus on the following features for the next releases.

2.2.0

  • Add rudimentary support for 7.0.1.
    • Make sure no functions break.
    • Check compatibility of old endpoints with new version.
  • WLAN and Home Network. (wlan)
    • (Guest) get/set WLAN configuration.
      • Add fritz.getWlanKey()
      • Add fritz.setWlanKey()
      • Add fritz.getWlanWPAType()
      • Add fritz.isWlanEncrypted()
      • Add fritz.allowNewWlanDevices(boolean)
      • Add fritz.getQRCode()
      • Add fritz.enableWlan(guest=false)
      • Add fritz.disableWlan(guest=false)
      • Start (Guest) WLAN WPS.
    • List active + inactive network connections (LAN+WLAN).
    • List connected USB devices.
    • Show WAN information.
  • Fritz!Box (system)
    • Add fritz.updateAvailable()
    • Add fritz.getBoxInfo() (no auth required)
    • Add fritz.getSystemLog()
    • Add fritz.getName()
    • Add fritz.setName()

2.3.0

  • Telephony (fon)
    • Add fritz.listDectPhones()
    • Add fritz.uploadPhonebook()
    • Add fritz.getContact()
    • Add fritz.addContact()
    • Add fritz.editContact()
    • Add fritz.removeContact()
  • Fritz!NAS (nas)
    • Add Fritz NAS and Media Server functions (list contents, CRUD files).
  • DECT Devices (dect)
    • Improve fritz.getSmartDevices().
      • View smart devices by group.
      • Standardize & translate keys from object.

3.0.0

  • Add browser compatibility using Browserify and Babel or webpack (Whatever the cool kids use these days).
  • Implement 2FA for 'Action Confirmation'

Any suggestions, pull requests or feedback is appreciated!

Still working through the change log of the new Fritz!OS 06.83: http://web.archive.org/web/20171122064809/http://ftp.avm.de/fritz.box/fritzbox.fon_wlan_7390/firmware/english/info.txt

And now working through the change log of Fritz!OS 07.01:
http://ftp.avm.de/fritzbox/fritzbox-4040/other/fritz.os/info_en.txt

StatusCodeError: 404 Not Found

Hello,

my Fritzbox got updated this week (07.10.20) to the version 07.21.

The fritzbox.js module does not work eversince.

I cannot get the list of my Dect devices anymore as the command fritz.getSmartDevices does not seem to work.

some debuging shows that the request HTTPS: GET /myfritz/areas/homeauto.lua?ajax_id= does not longer work due 404 error.

the error I see is this:
message: StatusCodeError: 404 - "<TITLE>404 Not Found (ERR_NOT_FOUND)</TITLE>

404 Not Found


ERR_NOT_FOUND
Webserver Sun

does anyone know how to fix this problem?

Many thanks in advance!

Regards,
Yitzon

Enable/disable TAM

Hi, thanks for the great work with your API.
I need a functionality to enable / disable certain TAMs. Is there a way to do that with your API. Any hints appreciated and many thanks so far!

Roadmap 2.0.0

See issue #5 for the Roadmap of v2.1.0

2.0.0

  • Rewrite to async/await ES6 and update for 06.83:
    • fritz.getSmartDevices()
    • fritz.toggleSwitch()
    • fritz.getCalls()
    • fritz.getTamMessages()
    • fritz.downloadTamMessage()
    • fritz.markTamMessageAsRead()
    • fritz.dialNumber()
    • fritz.getActiveCalls()
    • fritz.getPhonebook()
    • fritz.getSessionId()
    • fritz.getVersion()
    • fritz.getVersionNumber()
    • fritz.request()
  • Add fritz.markTamMessageAsRead()
  • Add fritz.dialNumber()
  • Add fritz.getPhonebook()
  • Add fritz.getVersion()
  • Add callmonitor.
  • Update all unit tests.
  • Add some documentation.
  • Add GitHub pages landing page and docs.

how to debug?

I am always getting this:
D:\TEMP\fritz\node_modules\fritzbox.js\test>node phonebook.js Error: Error: connect ECONNREFUSED 192.168.1.1:443

I did change username/password,
I did check if I can logon with this username/password
I even did set 'debug' to true

(and, yes, I am pretty new to node)

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.