Code Monkey home page Code Monkey logo

scriptable-proxmox-status's Introduction

Easy Proxmox Server Monitoring

With Node.js and Scriptable (for iOS)

๐Ÿค” How it works

The project is divided into two parts. The "Server" part and the "Scriptable" part.
Actually self-explanatory. The server part takes care of the connection with Proxmox and reads the status of your virtual machines.
The scriptable part prepares this data and shows it to you.

โ€๐Ÿ’ป Server configuration

You don't have to change anything in the server's Javascript code.
You only have to adjust the following config.json. That's it.
And of course don't forget to start the server with node main.js.
Here is the config.json first, then I explain the configuration.

{
  "proxmox": {
    "user": "root@pam!widget",
    "token": "YOURTOKEN",
    "hostname": "HOSTNAME:PORT"
  },
  "webserver": {
    "port": 3000
  },
  "settings": {
    "refresh": 10000
  }
}

In this example, a token with the name "widget" was created.
The field user is self-explanatory, there you enter the username.
In the Token field, enter the token (secret) that you have created.
At Hostname enter the URL where you can reach Proxmox, with Port.

Now the configuration for Proxmox is complete. ๐Ÿฅณ
Let's continue with the configuration for the web server.

At Port you enter any port under which our server should be reachable later.
Remember that this port should be reachable from the outside, so that the widget works.

Very good, you can optionally adjust refresh. With the configuration you can define how often the server refreshes the state of your virtual machines (milliseconds).

๐Ÿ› ๏ธ Client (Scriptable) configuration

The configuration from the client is quite simple.
As a test, just try to open the server URL in the browser.
Get the current script for the widget like this: http://IP:PORT/scriptable
After paste the code in Scriptable, run the script. A message window will open
where you have to enter the address of your server once (http://IP:PORT) and then you are ready to go!

Not quite understood yet? No problem! We have prepared a video for you: streamable.com/bhq3ik

scriptable-proxmox-status's People

Contributors

nils-kt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

hermesthecat

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.