Giter Site home page Giter Site logo

starlinkstatus's People

Contributors

4p5 avatar puchol avatar rgregg avatar sinnx3 avatar tevslin avatar tysonpower 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  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  avatar  avatar  avatar  avatar

starlinkstatus's Issues

Can't create a station on the site

HI,

I seem to be having trouble creating a station via your site, I have an account, API key and also have the client software running thanks to the native windows install.

But for the life of me, i can't create a station, I go to my dash and click the create a station button, asks me if I want to create another station so click ok but nothing happens after that

image
image

i'm not sure what I'm doing wrong so thought i would raise an issue and see if i can get some help

thanks in advance

[BUG] Obstructions

I've noticed for a while now that the obstruction GRPC data hasn't been pulling via the provided script and decided to look into it.

I'm not too tech advanced so I can't say for sure how it's changed but I can say that the data is still pullable but the readout/endpoint has changed. It's still provided in the debug data pulls "copy debug data" from the webapp and the android/ios app.

It'd be nice to get this data option working again.

bring windows version uptodate

what needs to be done, if anything, besides version number, retry curl to get ping servers, and removal of unsupported api?

Starlink Implementing Data Caps

Unfortunately I'm a heavy internet user. I will have to discontinue my contribution the the starlink status. Thank you for service!

Integration into Home Assistant

Don't know if any of you use Home Assistant but it's the defaco goto for Home Automation in Open Source. All of its third party apps use GitHub and docker to run.

This would be really could I'd you could find a way to make it an install and run on there. I know there's a lot of people who would use it.

95% and mean may not be correct?

image

With ping I would expect the 95% to be 95% of the time it should be less than X so the avg/mean should be below that number.

Likewise with upload and download I would expect 95% of the time the speed should be greater than X so the avg/mean should be above the 95% number.

Or am I reading this wrong? Or is the wrong 95% value being picked?

Issues with macOS Monterrey install

Following the instructions for macOS install presented several issues I had to work around. I was able to resolve the issues I experienced with the prerequisites go and grpcurl. However, the commands provided for setting up crontab on macOS just didn't work at all.

, even prefixing the commands with sudo. Either I got a permission error on the crontab file or there was no error, but no crontab entry was created for the user or the system.

In the end, I was forced to start a root shell (i.e., sudo -i) and then edit /private/etc/crontab manually. This got the cron job scheduled and it began running.

Now that the cron job is running, it appears to be failing. log show --process cron --info --debug reports the following:

Filtering the log data using "process BEGINSWITH[cd] "cron""
Timestamp                       Thread     Type        Activity             PID    TTL
2022-06-15 10:15:00.035107-0600 0xdf8b1    Info        0x0                  13991  0    cron: (/opt/repos/Tysonpower/starlinkstatus/starlinkstatus_client.sh) CMD (-k 'XXXXX' -s -d)
2022-06-15 10:15:00.040779-0600 0xdf8b0    Info        0x0                  13990  0    cron: (/opt/repos/Tysonpower/starlinkstatus/starlinkstatus_client.sh) MAIL (mailed 105 bytes of output but got status 0x0001

Is the MAIL message a problem? If so, any idea how to fix that?

FWIW, here is /etc/crontab (which is actually, /private/etc/crontab):

8,23,38,53 * * * * /opt/repos/Tysonpower/starlinkstatus/starlinkstatus_client.sh -k XXXXX -s -d

NOTE: The value of the -k parameter is my actual API Key which is masked here... ;)

speedtest cli failing on RaspberryPi

speedtest --version
speedtest-cli 2.1.3
Python 3.9.2 (default, Mar 12 2021, 04:06:34) [GCC 10.2.1 20210110]

usage: speedtest [-h] [--no-download] [--no-upload] [--single] [--bytes]
[--share] [--simple] [--csv] [--csv-delimiter CSV_DELIMITER]
[--csv-header] [--json] [--list] [--server SERVER]
[--exclude EXCLUDE] [--mini MINI] [--source SOURCE]
[--timeout TIMEOUT] [--secure] [--no-pre-allocate]
[--version]
speedtest: error: unrecognized arguments: -V --accept-license --accept-gdpr
speedtest is running...
usage: speedtest [-h] [--no-download] [--no-upload] [--single] [--bytes]
[--share] [--simple] [--csv] [--csv-delimiter CSV_DELIMITER]
[--csv-header] [--json] [--list] [--server SERVER]
[--exclude EXCLUDE] [--mini MINI] [--source SOURCE]
[--timeout TIMEOUT] [--secure] [--no-pre-allocate]
[--version]
speedtest: error: unrecognized arguments: -f json

Dropping the bad arguments allows the script to finish, but no speedtest data is captured to transmit (both 0 mbps). Was working until 10/29 so I bet apt had an update to Speedtest that busted it, which means it is coming for everyone eventually.

error with docker-compose command

Hi - getting the following errors when trying to run.

pi@raspi4-8gb-argon:~/Downloads/starlinkstatus-main/docker $ docker-compose up -d
Building starlinkstatus
Sending build context to Docker daemon 4.608kB
Step 1/9 : FROM alpine:latest
---> 78571b13081b
Step 2/9 : RUN apk update && apk add curl bash go
---> Running in ff2ea009d6a0
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/main/armv7/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/community/armv7/APKINDEX.tar.gz
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.15/main: temporary error (try again later)
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.15/main: No such file or directory
3069449104:error:0D0D90AD:asn1 encoding routines:ASN1_TIME_adj:error getting time:crypto/asn1/a_time.c:330:
3069449104:error:0D0D90AD:asn1 encoding routines:ASN1_TIME_adj:error getting time:crypto/asn1/a_time.c:330:
3069449104:error:0D0D90AD:asn1 encoding routines:ASN1_TIME_adj:error getting time:crypto/asn1/a_time.c:330:
3069449104:error:0D0D90AD:asn1 encoding routines:ASN1_TIME_adj:error getting time:crypto/asn1/a_time.c:330:
3069449104:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1914:
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.15/community: Permission denied
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.15/community: No such file or directory
2 errors; 14 distinct packages available
The command '/bin/sh -c apk update && apk add curl bash go' returned a non-zero code: 2
ERROR: Service 'starlinkstatus' failed to build : Build failed

UNKNOWN_USER_CLASS_OF_SERVICE

Service Class

UNKNOWN_USER_CLASS_OF_SERVICE

Howdy, I seem to be having issues getting ping to work properly via cron on my Mac install, so I got this up and running on my Pi. Everything seems to be working as designed, but I get the error message above.

doesn't have a debian/buntu repo

most apps have a couple lines you you can pop in to a debian based distro with some copy paste commands and BAM! it's done. bada-bing bada-boom just a 2 liner. this has .sh files and other icky things. eeewwwww

Error during build grpcurl

Installed golang using apt install.
go get github does a lot and compiles a lot but finishes giving the following error (below is from re-run...):-
go get github.com/fullstorydev/grpcurl/...

google.golang.org/grpc/credentials

go/src/google.golang.org/grpc/credentials/tls.go:233:2: undefined: tls.TLS_AES_128_GCM_SHA256
go/src/google.golang.org/grpc/credentials/tls.go:234:2: undefined: tls.TLS_AES_256_GCM_SHA384
go/src/google.golang.org/grpc/credentials/tls.go:235:2: undefined: tls.TLS_CHACHA20_POLY1305_SHA256

golang.org/x/net/http2

go/src/golang.org/x/net/http2/client_conn_pool.go:305:6: undefined: errors.Is
go/src/golang.org/x/net/http2/server.go:234:72: undefined: tls.VersionTLS13

Regards

GPS Data For Stations

You can directly pull GPS location data from the dish with the grpcurl command grpcurl -plaintext -emit-defaults -d '{"getLocation":{}}' 192.168.100.1:9200 SpaceX.API.Device.Device/Handle as long as the end user has the required setting enabled in their app Settings > Advanced > Debug Data > Starlink Location [Allow access on local network]

Should this be applied in a future update of this script it would allow more streamlined station creations directly from the script.

Average data usage

With the new data caps being instituted, I think it would be good to add an estimate for the expected data usage to the Readme for potential users.

I've done speed tests before on 5G UWB and gone through a gigabyte of download data in 10 seconds so speed tests every 15 mins could definitely add up quickly.

starlink

during install, requests change ip to starlink, Space Exploration Technologies is my IP, isn't this starlink?

need to accept speedtest license

needs to run an extra command I think, after Ookla install: speedtest --accept-license

grpcurl dev build <no version set>
getting Dishy Data...
Failed to dial target host "192.168.100.1:9200": dial tcp 192.168.100.1:9200: connect: connection refused
speedtest is running...
==============================================================================

You may only use this Speedtest software and information generated
from it for personal, non-commercial use, through a command line
interface on a personal computer. Your use of this software is subject
to the End User License Agreement, Terms of Use and Privacy Policy at
these URLs:

        https://www.speedtest.net/about/eula
        https://www.speedtest.net/about/terms
        https://www.speedtest.net/about/privacy

==============================================================================

To accept the message please run speedtest interactively or use the following:

    speedtest --accept-license
Request from IP: 89.x.x.x - Key not Valid...\n

Unable to run install.ps1

After copying the full path, I get a red message in the shell stating that running scripts have been disabled.
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows

PS C:\WINDOWS\system32> powershell.exe -noprofile -executionpolicy bypass -file /install.ps1
At line:1 char:57

  • powershell.exe -noprofile -executionpolicy bypass -file <full path to ...
  •                                                     ~
    

The '<' operator is reserved for future use.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordEx
ception
+ FullyQualifiedErrorId : RedirectionNotSupported

PS C:\WINDOWS\system32>
PS C:\WINDOWS\system32> install.ps1
install.ps1 : The term 'install.ps1' is not recognized as the name of a
cmdlet, function, script file, or operable program. Check the spelling of the
name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

  • install.ps1
  •   + CategoryInfo          : ObjectNotFound: (install.ps1:String) [], Command
     NotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
    

PS C:\WINDOWS\system32> C:\Users\depty\Downloads\Install.ps1
C:\Users\depty\Downloads\Install.ps1 : File
C:\Users\depty\Downloads\Install.ps1 cannot be loaded because running scripts
is disabled on this system. For more information, see about_Execution_Policies
at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1

  • C:\Users\depty\Downloads\Install.ps1
  •   + CategoryInfo          : SecurityError: (:) [], PSSecurityException
      + FullyQualifiedErrorId : UnauthorizedAccess
    

PS C:\WINDOWS\system32> powershell.exe -noprofile -executionpolicy bypass -file /install.ps1
At line:1 char:57

  • powershell.exe -noprofile -executionpolicy bypass -file <full path to ...
  •                                                     ~
    

The '<' operator is reserved for future use.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordEx
ception
+ FullyQualifiedErrorId : RedirectionNotSupported

PS C:\WINDOWS\system32> C:\Users\depty\Downloads\Install.ps1
C:\Users\depty\Downloads\Install.ps1 : File
C:\Users\depty\Downloads\Install.ps1 cannot be loaded because running scripts
is disabled on this system. For more information, see about_Execution_Policies
at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1

  • C:\Users\depty\Downloads\Install.ps1
  •   + CategoryInfo          : SecurityError: (:) [], PSSecurityException
      + FullyQualifiedErrorId : UnauthorizedAccess
    

PS C:\WINDOWS\system32>

Front page shows 95th percentile as big number [was: Front page statistics underestimated because of inactive stations?]

The statistics at the top of the front page show speeds around ~40 Mbit/s in the Download and ~9 Mbit/s in the Upload. The graph below shows much higher Download AVG speeds if zero values are neglected. See also screenshot.

Probably the numbers at the top also consider measurements which report zero bandwidth (at the beginning of measurements in March/April/May and recently no active users in France), which leads to rather poor numbers at the top of the front page.

I'd suggest to discard reports with zero bandwidth and/or inactive users...

Screenshot from 2021-07-14 22-05-19

No Pings reported by most clients

There seems to be an issue with running the sh script as a cronjob since the end of january.

It's very strange and hard to reproduce for me, but it seems that it is caused by an old script version.

If you are affected by this, please write a quick comment if this works:

  • remove the .sh script rm starlinkstatus_client.sh
  • redownload the script wget https://raw.githubusercontent.com/Tysonpower/starlinkstatus/main/starlinkstatus_client.sh
  • chmod +x starlinkstatus_client.sh

Station statistics broken in Safari

I will update this issue if I can debug the specific problem.

None of the data seems to load if opening a station's details page in Safari. I see this on both macOS and iOS.

Router v2 in Bypass mode, are -d stats possible?

I have the Square Dishy with the V2 router (with ethernet adapter) providing my existing network with its WAN connection.

I have the Starlink router in bypass mode, is it possible to still get -d stats with this or not because the router is truely "disabled"? (Even though I can view stats "remotely" through the app still)

Thanks!

Connection error after "retesting speedtest..."

Script output below:

C:\users*****\documents\StarlinkScripts already exists.
VERBOSE: GET https://raw.githubusercontent.com/Tysonpower/starlinkstatus/main/windowsinstall/messages.json with 0-byte payload
VERBOSE: received 1086-byte response of content type text/plain; charset=utf-8
VERBOSE: GET https://raw.githubusercontent.com/Tysonpower/starlinkstatus/main/windowsinstall/Starlinkstatus_client.ps1 with 0-byte payload
VERBOSE: received 3713-byte response of content type text/plain; charset=utf-8
VERBOSE: GET https://raw.githubusercontent.com/Tysonpower/starlinkstatus/main/windowsinstall/starlinkstatusstarter.ps1 with 0-byte payload
VERBOSE: received 309-byte response of content type text/plain; charset=utf-8
https://github.com/tevslin/Starlink-Statuspage-Clients/raw/main/exes.zip downloaded
exes.zip unzipped
https://install.speedtest.net/app/cli/ookla-speedtest-1.0.0-win64.zip downloaded
ookla-speedtest-1.0.0-win64.zip unzipped
testing speedtest...
retesting speedtest...
{"type":"log","timestamp":"2022-03-03T14:36:42Z","message":"Error: [0] Cannot open socket: ","level":"error"}
speedtest failure
{"type":"log","timestamp":"2022-03-03T14:39:25Z","message":"Error: [0] Cannot open socket: ","level":"error"}
{"type":"log","timestamp":"2022-03-03T14:43:01Z","message":"Error: [0] Cannot open socket: ","level":"error"}
error
Cannot write: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host ...
speedtest failure
Latency test failed for both TCP, and no HTTP URL available.
{"type":"log","timestamp":"2022-03-03T14:45:56Z","message":"Error: [0] Cannot open socket: ","level":"error"}
{"type":"log","timestamp":"2022-03-03T14:47:03Z","message":"Error: [0] Cannot open socket: ","level":"error"}
speedtest failure
Latency test failed for both TCP, and no HTTP URL available.

go get deprecated?

Hello,

tried this today on a Pne64

but it stalled at point 2
(after installing the Google SDK as you suggested)

test@pine64:~/Baixades$ export PATH=$PATH:/usr/local/go/bin test@pine64:~/Baixades$ go version go version go1.18.8 linux/arm64 test@pine64:~/Baixades$ cd .. test@pine64:~$ nano .bashrc test@pine64:~$ go get github.com/fullstorydev/grpcurl/... go: go.mod file not found in current directory or any parent directory. 'go get' is no longer supported outside a module. To build and install a command, use 'go install' with a version, like 'go install example.com/cmd@latest' For more information, see https://golang.org/doc/go-get-install-deprecation or run 'go help get' or 'go help install'.

Key not valid

I'm not sure what could be happening.
I tried with 2 keys (different stations)

#######:starlinkstatus:# ./starlinkstatus_client.sh -k 'xxxxxxxxxxx' -s -d
starlinkstatus.space Client - Version 1.21
API Key: xxxxxxxxxxx
Starting Ping Test (Servers: 7)...
Ping to 1.1.1.1: 35.673
Ping to tynet.eu: 346.777
Ping to fl-us-ping.vultr.com: 149.523
Ping to lax-ca-us-ping.vultr.com: 154.915
Ping to wa-us-ping.vultr.com: 196.393
Ping to tor-ca-ping.vultr.com: 169.022
Ping to syd-au-ping.vultr.com: 332.912
grpcurl dev build <no version set>
getting Dishy Data...
speedtest is running...
Request from IP: 138.x.x.x - Key not Valid...\n

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.