Skip to content

Commit

Permalink
removed last things
Browse files Browse the repository at this point in the history
  • Loading branch information
aukecb committed Nov 12, 2023
1 parent 5f0ca99 commit d084419
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
Empty file.
3 changes: 0 additions & 3 deletions webapp/weather_station/map/static/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ function open_station_url(url){
info.scrollIntoView(true, { behavior: "smooth", block: "start", inline: "center" });

data = fetch(url).then(data=>{return data.json()}).then(res=>{
console.log(res);
res = res.results;
if (res == undefined || res[0]== undefined){
c2.clear();
Expand Down Expand Up @@ -130,7 +129,6 @@ function open_station(e){

url = 'https://whub.duckdns.org/api/weather/?ordering=-id&limit=50&weather_station=' + e.target.myID;
data = fetch(url).then(data=>{return data.json()}).then(res=>{
console.log(res);
res = res.results;
if (res == undefined || res[0]== undefined){
c2.clear();
Expand Down Expand Up @@ -159,7 +157,6 @@ function open_station(e){
var lbls = res.map(function(d) {return d['time'].substring(2, 19);}).reverse();
var datasets = [];
Object.entries(res[0].data).forEach(function(key, value){
console.log(key);
datasets.push({
label: key[0],
data: res.map(function(d) {return d.data[key[0]]}).reverse()
Expand Down

0 comments on commit d084419

Please sign in to comment.